Lines Matching +full:delay +full:- +full:us
1 // SPDX-License-Identifier: GPL-2.0-or-later
8 * extensive empirical testing has revealed that auto-detection of
9 * limit-registers will fail in a random fashion unless the delay
10 * parameter is set to above about 80us. The default delay is set
11 * to 100us to include some safety margin.
21 #include <linux/delay.h>
39 #define MAX15301_WAIT_TIME 100 /* us */
41 static ushort delay = MAX15301_WAIT_TIME; variable
42 module_param(delay, ushort, 0644);
43 MODULE_PARM_DESC(delay, "Delay between chip accesses in us");
63 if (!i2c_check_functionality(client->adapter, in max15301_probe()
66 return -ENODEV; in max15301_probe()
70 dev_err(&client->dev, "Failed to read Device Id\n"); in max15301_probe()
73 for (mid = max15301_id; mid->name[0]; mid++) { in max15301_probe()
74 if (!strncasecmp(mid->name, device_id, strlen(mid->name))) in max15301_probe()
77 if (!mid->name[0]) { in max15301_probe()
78 dev_err(&client->dev, "Unsupported device\n"); in max15301_probe()
79 return -ENODEV; in max15301_probe()
82 info->access_delay = delay; in max15301_probe()