]> www.infradead.org Git - users/jedix/linux-maple.git/commit
misc: lis3lv02d: convert to use faux_device
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Feb 2025 12:30:31 +0000 (13:30 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Mar 2025 08:10:34 +0000 (09:10 +0100)
commit3b18ccb5472b78c48b03b98e8a0ef467c3e0a175
treef3c680b0d06286b2a5b101f9ed7145724d6024f3
parent72239a78f9f5b9f05ea4bb7a15b92807906dab71
misc: lis3lv02d: convert to use faux_device

The lis3lv02d driver does not need to create a platform device, it only
did so because it was simple to do that in order to get a place in sysfs
to hang some device-specific attributes.  Change it over to use the faux
device instead as this is NOT a real platform device, and it makes the
code even smaller than before.

Cc: Eric Piel <eric.piel@tremplin-utc.net>
Cc: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/2025021028-shortcake-stained-b0a8@gregkh
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/lis3lv02d/lis3lv02d.c
drivers/misc/lis3lv02d/lis3lv02d.h