mbox series

[0/2] bootcount: Replace I2C legacy implementation by driver model

Message ID 20231013094302.28944-1-pro@denx.de
Headers show
Series bootcount: Replace I2C legacy implementation by driver model | expand

Message

Philip Oberfichtner Oct. 13, 2023, 9:43 a.m. UTC
The generic I2C bootcounter driver does not yet adhere to driver model.
This patchset intends to replace the legacy implementation.

There are currently no upstream boards using the driver, so it should be
safe to just remove it. For downstream users it should be straighforward to
switch to the new implementation.

Philip Richard Oberfichtner (2):
  bootcount: Remove legacy I2C driver
  bootcount: Add driver model I2C driver

 drivers/bootcount/Kconfig            |  34 +++-----
 drivers/bootcount/Makefile           |   2 +-
 drivers/bootcount/bootcount_dm_i2c.c | 126 +++++++++++++++++++++++++++
 drivers/bootcount/bootcount_i2c.c    |  43 ---------
 4 files changed, 140 insertions(+), 65 deletions(-)
 create mode 100644 drivers/bootcount/bootcount_dm_i2c.c
 delete mode 100644 drivers/bootcount/bootcount_i2c.c