]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - include/misc/charlcd.h
auxdisplay: charlcd: Add support for 4-bit interfaces
[mirror_ubuntu-artful-kernel.git] / include / misc / charlcd.h
index c40047b673c9ea099160366857103e497c541cee..23f61850f3639ae1686f9f83e0bac6e6a5015ba5 100644 (file)
@@ -14,6 +14,7 @@ struct charlcd {
        const struct charlcd_ops *ops;
        const unsigned char *char_conv; /* Optional */
 
+       int ifwidth;                    /* 4-bit or 8-bit (default) */
        int height;
        int width;
        int bwidth;                     /* Default set by charlcd_alloc() */
@@ -28,6 +29,7 @@ struct charlcd_ops {
        void (*write_data)(struct charlcd *lcd, int data);
 
        /* Optional */
+       void (*write_cmd_raw4)(struct charlcd *lcd, int cmd);   /* 4-bit only */
        void (*clear_fast)(struct charlcd *lcd);
        void (*backlight)(struct charlcd *lcd, int on);
 };