]> git.ipfire.org Git - thirdparty/linux.git/commit
auxdisplay: linedisp: support attribute attachment to auxdisplay devices
authorJean-François Lessard <jefflessard3@gmail.com>
Thu, 18 Sep 2025 12:13:15 +0000 (08:13 -0400)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 15 Oct 2025 16:46:01 +0000 (18:46 +0200)
commit3ba5c78fe7c5d60edae0c47361f191d40c5c1cf0
treea8198790dbb2bcc4c924e66e471821e32755658f
parente25063466d6d365b669320c0323b3282ea52f21c
auxdisplay: linedisp: support attribute attachment to auxdisplay devices

Enable linedisp library integration into existing kernel devices (like LED
class) to provide a uniform 7-segment userspace API without creating
separate child devices, meeting the consistent interface while maintaining
coherent device hierarchies.

This allows uniform 7-segment API across all drivers while solving device
proliferation and fragmented userspace interfaces.

The sysfs attributes appear in one of the two locations depending on usage:
  1. On linedisp.N child devices (legacy linedisp_register())
  2. On the parent auxdisplay device (new linedisp_attach())
Functionality is identical in both modes.

Existing consumers of linedisp_register() are unaffected. The new API
enables drivers like TM16XX to integrate 7-segment display functionality
seamlessly within their LED class device hierarchy.

Signed-off-by: Jean-François Lessard <jefflessard3@gmail.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/auxdisplay/line-display.c
drivers/auxdisplay/line-display.h