mbox series

[0/4] hwmon: (ntc_thermistor) Drop platform data

Message ID 20211125020841.3616359-1-linus.walleij@linaro.org (mailing list archive)
Headers show
Series hwmon: (ntc_thermistor) Drop platform data | expand

Message

Linus Walleij Nov. 25, 2021, 2:08 a.m. UTC
Since this driver was merged in 2011 nothing in the kernel
has ever used the platform data intended for boardfiles.

Drop this support burden: everyone and their dog is using
this with OF and IIO now.

If there are out-of-tree users who need this, this is the
time to start submitting that platform upstream and stop
working in the shadows. (This will invariably involve having
to convert the platform to OF (or ACPI!).)

Linus Walleij (4):
  hwmon: (ntc_thermistor) Merge platform data into driver
  hwmon: (ntc_thermistor) Drop get_ohm()
  hwmon: (ntc_thermistor) Drop read_uv() depend on OF and IIO
  hwmon: (ntc_thermistor) Merge platform data

Cc: Peter Rosin <peda@axentia.se>
Cc: Chris Lesiak <chris.lesiak@licor.com>

 drivers/hwmon/Kconfig                        |   5 +-
 drivers/hwmon/ntc_thermistor.c               | 148 ++++++++-----------
 include/linux/platform_data/ntc_thermistor.h |  50 -------
 3 files changed, 66 insertions(+), 137 deletions(-)
 delete mode 100644 include/linux/platform_data/ntc_thermistor.h

Comments

Guenter Roeck Nov. 28, 2021, 6 p.m. UTC | #1
On Thu, Nov 25, 2021 at 03:08:37AM +0100, Linus Walleij wrote:
> Since this driver was merged in 2011 nothing in the kernel
> has ever used the platform data intended for boardfiles.
> 
> Drop this support burden: everyone and their dog is using
> this with OF and IIO now.
> 
> If there are out-of-tree users who need this, this is the
> time to start submitting that platform upstream and stop
> working in the shadows. (This will invariably involve having
> to convert the platform to OF (or ACPI!).)
> 
> Linus Walleij (4):
>   hwmon: (ntc_thermistor) Merge platform data into driver
>   hwmon: (ntc_thermistor) Drop get_ohm()
>   hwmon: (ntc_thermistor) Drop read_uv() depend on OF and IIO
>   hwmon: (ntc_thermistor) Merge platform data
> 
> Cc: Peter Rosin <peda@axentia.se>
> Cc: Chris Lesiak <chris.lesiak@licor.com>
> 
>  drivers/hwmon/Kconfig                        |   5 +-
>  drivers/hwmon/ntc_thermistor.c               | 148 ++++++++-----------
>  include/linux/platform_data/ntc_thermistor.h |  50 -------
>  3 files changed, 66 insertions(+), 137 deletions(-)
>  delete mode 100644 include/linux/platform_data/ntc_thermistor.h
> 

The series looks reasonable to me. I'll apply it to hwmon-next.

Guenter