w1: w1_therm: Rename conflicting sysfs attribute 'eeprom' to 'eeprom_cmd'
authorIvan Zaentsev <ivan.zaentsev@wirenboard.ru>
Thu, 12 Nov 2020 06:49:31 +0000 (09:49 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Nov 2020 07:50:13 +0000 (08:50 +0100)
commit439e8f6f1e5d1ca973da278499078e213dad63bb
tree2a360acf8077798f8f5fc722c337d94f9ef1754a
parent1987f112f1425cba2671d878f6952087e9456a0a
w1: w1_therm: Rename conflicting sysfs attribute 'eeprom' to 'eeprom_cmd'

Duplicate attribute 'eeprom' is defined in:
1) Documentation/ABI/testing/sysfs-driver-w1_therm
2) Documentation/ABI/stable/sysfs-driver-w1_ds28e04

Both drivers define an attribute: /sys/bus/w1/devices/.../eeprom
with conflicting behavior.

Fix by renaming the newer one in w1_therm.c to 'eeprom_cmd'.

Reported-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/lkml/20201029152845.6bbb39ce@coco.lan/
Signed-off-by: Ivan Zaentsev <ivan.zaentsev@wirenboard.ru>
Link: https://lore.kernel.org/r/20201112064931.8471-1-ivan.zaentsev@wirenboard.ru
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/ABI/testing/sysfs-driver-w1_therm
Documentation/w1/slaves/w1_therm.rst
drivers/w1/slaves/w1_therm.c