Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1616178
| From | Darren Hart <dvhart@infradead.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 1/2] platform/x86: silead_dmi - do not treat all devices as i2c_clients |
| Date | 2017-04-04 18:10 +0200 |
| Message-ID | <tszbR-78Z-53@gated-at.bofh.it> (permalink) |
| References | <tsnkm-7ED-5@gated-at.bofh.it> <tsx0m-5yd-27@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, Apr 04, 2017 at 04:45:05PM +0300, Andy Shevchenko wrote:
> On Tue, Apr 4, 2017 at 6:25 AM, Dmitry Torokhov
> <dmitry.torokhov@gmail.com> wrote:
> > I2C bus has both i2c clients and adapter devices, so we must be careful in
> > notifier code and verify that we are actually dealing with an i2c client
> > before using it as such.
>
> > -static void silead_ts_dmi_add_props(struct device *dev)
> > +static void silead_ts_dmi_add_props(struct i2c_client *client)
> > {
>
> > - struct i2c_client *client = to_i2c_client(dev);
>
> I would replace this by
> struct device *dev = &client->dev;
>
> Otherwise looks good for me.
Andy, this series looks like a candidate for 4.11-fixes. We're already at rc5
though, so if we are going to do that, I'd like to see a stronger statement in
the commit log about how this issue manifests currently - if it does.
--
Darren Hart
VMware Open Source Technology Center
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 1/2] platform/x86: silead_dmi - do not treat all devices as i2c_clients Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2017-04-04 05:30 +0200
Re: [PATCH 1/2] platform/x86: silead_dmi - do not treat all devices as i2c_clients Hans de Goede <hdegoede@redhat.com> - 2017-04-04 12:00 +0200
Re: [PATCH 1/2] platform/x86: silead_dmi - do not treat all devices as i2c_clients Andy Shevchenko <andy.shevchenko@gmail.com> - 2017-04-04 15:50 +0200
Re: [PATCH 1/2] platform/x86: silead_dmi - do not treat all devices as i2c_clients Andy Shevchenko <andy.shevchenko@gmail.com> - 2017-04-04 18:10 +0200
Re: [PATCH 1/2] platform/x86: silead_dmi - do not treat all devices as i2c_clients Darren Hart <dvhart@infradead.org> - 2017-04-04 18:40 +0200
Re: [PATCH 1/2] platform/x86: silead_dmi - do not treat all devices as i2c_clients Andy Shevchenko <andy.shevchenko@gmail.com> - 2017-04-04 18:40 +0200
Re: [PATCH 1/2] platform/x86: silead_dmi - do not treat all devices as i2c_clients Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2017-04-04 19:20 +0200
Re: [PATCH 1/2] platform/x86: silead_dmi - do not treat all devices as i2c_clients Darren Hart <dvhart@infradead.org> - 2017-04-04 18:10 +0200
csiph-web