Re: [PATCH v8 2/3] i2c: core: add device-managed version of i2c_new_dummy

2019-05-17 Thread Wolfram Sang
On Thu, May 16, 2019 at 11:13:09PM +0200, Wolfram Sang wrote: > From: Heiner Kallweit > > i2c_new_dummy is typically called from the probe function of the > driver for the primary i2c client. It requires calls to > i2c_unregister_device in the error path of the probe function and > in the remove

Re: [PATCH v8 2/3] i2c: core: add device-managed version of i2c_new_dummy

2019-05-17 Thread Bartosz Golaszewski
czw., 16 maj 2019 o 23:13 Wolfram Sang napisaƂ(a): > > From: Heiner Kallweit > > i2c_new_dummy is typically called from the probe function of the > driver for the primary i2c client. It requires calls to > i2c_unregister_device in the error path of the probe function and > in the remove function.

Re: [PATCH v8 2/3] i2c: core: add device-managed version of i2c_new_dummy

2019-05-17 Thread Kieran Bingham
Hi Wolfram, On 16/05/2019 22:13, Wolfram Sang wrote: > From: Heiner Kallweit > > i2c_new_dummy is typically called from the probe function of the > driver for the primary i2c client. It requires calls to > i2c_unregister_device in the error path of the probe function and > in the remove function

Re: [PATCH v8 2/3] i2c: core: add device-managed version of i2c_new_dummy

2019-05-17 Thread Peter Rosin
On 2019-05-16 23:13, Wolfram Sang wrote: > From: Heiner Kallweit > > i2c_new_dummy is typically called from the probe function of the > driver for the primary i2c client. It requires calls to > i2c_unregister_device in the error path of the probe function and > in the remove function. > This can

[PATCH v8 2/3] i2c: core: add device-managed version of i2c_new_dummy

2019-05-16 Thread Wolfram Sang
From: Heiner Kallweit i2c_new_dummy is typically called from the probe function of the driver for the primary i2c client. It requires calls to i2c_unregister_device in the error path of the probe function and in the remove function. This can be simplified by introducing a device-managed version.