diff mbox series

[v2,4/6] docs: ABI: document tm1628 attribute display-text

Message ID 94ceeca1-3123-fc4b-8cc9-a86e9ad08863@gmail.com (mailing list archive)
State Superseded
Headers show
Series auxdisplay: Add support for the Titanmec TM1628 7 segment display controller | expand

Commit Message

Heiner Kallweit Feb. 21, 2022, 8:24 p.m. UTC
Document the attribute for reading / writing the text to be displayed on
the 7 segment display.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
---
 Documentation/ABI/testing/sysfs-devices-auxdisplay-tm1628 | 7 +++++++
 1 file changed, 7 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-devices-auxdisplay-tm1628

Comments

Geert Uytterhoeven Feb. 22, 2022, 8:20 a.m. UTC | #1
Hi Heiner,

On Mon, Feb 21, 2022 at 9:26 PM Heiner Kallweit <hkallweit1@gmail.com> wrote:
> Document the attribute for reading / writing the text to be displayed on
> the 7 segment display.
>
> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>

Thanks for your patch!

> --- /dev/null
> +++ b/Documentation/ABI/testing/sysfs-devices-auxdisplay-tm1628
> @@ -0,0 +1,7 @@
> +What:          /sys/devices/.../display-text
> +Date:          February 2022
> +Contact:       Heiner Kallweit <hkallweit1@gmail.com>
> +Description:
> +               The text to be displayed on the 7 segment display.
> +               Any printable character is allowed as input, but some
> +               can not be displayed in a readable way with 7 segments.

Hence you may want to make the mapping configurable, cfr.
MAP_TO_SEG7_SYSFS_FILE in include/uapi/linux/map_to_7segment.h?

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
diff mbox series

Patch

diff --git a/Documentation/ABI/testing/sysfs-devices-auxdisplay-tm1628 b/Documentation/ABI/testing/sysfs-devices-auxdisplay-tm1628
new file mode 100644
index 000000000..382757e72
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-devices-auxdisplay-tm1628
@@ -0,0 +1,7 @@ 
+What:		/sys/devices/.../display-text
+Date:		February 2022
+Contact:	Heiner Kallweit <hkallweit1@gmail.com>
+Description:
+		The text to be displayed on the 7 segment display.
+		Any printable character is allowed as input, but some
+		can not be displayed in a readable way with 7 segments.