Re: [PATCH v3] hwmon/pmbus: use simple i2c probe function

2020-08-08 Thread Guenter Roeck
On 8/7/20 11:53 PM, Stephen Kitt wrote: > On Fri, 7 Aug 2020 21:07:07 +0200, Stephen Kitt wrote: > >> On Fri, 7 Aug 2020 10:32:31 -0700, Guenter Roeck wrote: >>> On Fri, Aug 07, 2020 at 06:28:01PM +0200, Stephen Kitt wrote: -static int ltc2978_probe(struct i2c_client *client,

Re: [PATCH v3] hwmon/pmbus: use simple i2c probe function

2020-08-08 Thread Stephen Kitt
On Fri, 7 Aug 2020 21:07:07 +0200, Stephen Kitt wrote: > On Fri, 7 Aug 2020 10:32:31 -0700, Guenter Roeck wrote: > > On Fri, Aug 07, 2020 at 06:28:01PM +0200, Stephen Kitt wrote: > > > > > > -static int ltc2978_probe(struct i2c_client *client, > > > - const struct i2c_device

Re: [PATCH v3] hwmon/pmbus: use simple i2c probe function

2020-08-07 Thread Stephen Kitt
On Fri, 7 Aug 2020 10:32:31 -0700, Guenter Roeck wrote: > On Fri, Aug 07, 2020 at 06:28:01PM +0200, Stephen Kitt wrote: > > > > -static int ltc2978_probe(struct i2c_client *client, > > -const struct i2c_device_id *id) > > +static int ltc2978_probe(struct i2c_client *client) >

Re: [PATCH v3] hwmon/pmbus: use simple i2c probe function

2020-08-07 Thread Guenter Roeck
On Fri, Aug 07, 2020 at 06:28:01PM +0200, Stephen Kitt wrote: > pmbus_do_probe doesn't use the id information provided in its second > argument, so this can be removed, which then allows using the > single-parameter i2c probe function ("probe_new") for probes. > > This avoids scanning the identifi

[PATCH v3] hwmon/pmbus: use simple i2c probe function

2020-08-07 Thread Stephen Kitt
pmbus_do_probe doesn't use the id information provided in its second argument, so this can be removed, which then allows using the single-parameter i2c probe function ("probe_new") for probes. This avoids scanning the identifier tables during probes. Drivers which didn't use the id are converted