Skip to content

at24: use devm_i2c_new_dummy_device()

Bartosz Golaszewski linux-i2c lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 2 repliesIn review
  2. v12 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- 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

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2eeprom: at24: use devm_i2c_new_dummy_device()drivers/misc/eeprom/at24.c+9 -292 replies
2/2eeprom: at24: drop unnecessary labeldrivers/misc/eeprom/at24.c+18 -250 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchWolfram Sang
1/2R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] at24: use devm_i2c_new_dummy_device()

From: Bartosz Golaszewski <[email protected]>

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(-)
Signature · 1 line
2.21.0