]> www.infradead.org Git - users/jedix/linux-maple.git/commit
auxdisplay: hd44780: Call charlcd_alloc() from hd44780_common_alloc()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 24 Feb 2025 17:27:43 +0000 (19:27 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 10 Mar 2025 16:03:02 +0000 (18:03 +0200)
commit65f095b2b1f2ae2e0919a24a6f6883b580b72602
tree9c1429afab2d4fdd6b4ec946f597dc45acfa918a
parent664d2179c6e3d08d5e1180beddd79ca8f0663d89
auxdisplay: hd44780: Call charlcd_alloc() from hd44780_common_alloc()

HD44780 APIs all operate on struct charlcd objects. Moreover, the current users
always call charlcd_alloc() and hd44780_common_alloc(). Make the latter call
the former, so eliminate the additional allocation, to make it consistent with
the rest of API and avoid duplication.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
drivers/auxdisplay/hd44780.c
drivers/auxdisplay/hd44780_common.c
drivers/auxdisplay/hd44780_common.h
drivers/auxdisplay/panel.c