]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
eeprom: ee1004: Let device core handle attribute eeprom
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 19 May 2021 16:34:27 +0000 (18:34 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 May 2021 20:13:13 +0000 (22:13 +0200)
commitb63866efa10ca5e4497f17eb3e3a03dc6929c49e
tree1c799b2225a0e02f3928c723aa6b10211554ca4e
parent46ad057245912fc8a49e18f6f8b57f80ab8d4dc1
eeprom: ee1004: Let device core handle attribute eeprom

Instead of creating/removing the attribute ourselves, just declare the
attribute and let the device core handle it. This allows to simplify
the code.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://lore.kernel.org/r/8a6c77f2-f84a-311b-c2b9-21798f690e4d@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/eeprom/ee1004.c