All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] at24: use devm_i2c_new_dummy_device()
@ 2019-05-20  7:10 Bartosz Golaszewski
  2019-05-20  7:10 ` [PATCH v2 1/2] eeprom: " Bartosz Golaszewski
  2019-05-20  7:10 ` [PATCH v2 2/2] eeprom: at24: drop unnecessary label Bartosz Golaszewski
  0 siblings, 2 replies; 5+ messages in thread
From: Bartosz Golaszewski @ 2019-05-20  7:10 UTC (permalink / raw)
  To: linux-i2c; +Cc: Wolfram Sang, linux-kernel, Bartosz Golaszewski

From: Bartosz Golaszewski <bgolaszewski@baylibre.com>

Now that we have a resource managed version of i2c_new_dummy_device(),
use it in at24.

v1 -> v2:
- i2c_new_dummy_device() returns ERR_PTR(), not NULL so check the value
  correctly
- remove the no longer needed i2c_unregister_device() in error path

Bartosz Golaszewski (2):
  eeprom: at24: use devm_i2c_new_dummy_device()
  eeprom: at24: drop unnecessary label

 drivers/misc/eeprom/at24.c | 75 ++++++++++++--------------------------
 1 file changed, 24 insertions(+), 51 deletions(-)

-- 
2.21.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-05-28 15:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-20  7:10 [PATCH v2 0/2] at24: use devm_i2c_new_dummy_device() Bartosz Golaszewski
2019-05-20  7:10 ` [PATCH v2 1/2] eeprom: " Bartosz Golaszewski
2019-05-20 13:08   ` Wolfram Sang
2019-05-28 15:57     ` Bartosz Golaszewski
2019-05-20  7:10 ` [PATCH v2 2/2] eeprom: at24: drop unnecessary label Bartosz Golaszewski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.