[PATCH v1 0/7] auxdisplay: charlcd: Refactor memory allocation
From: Andy Shevchenko
Date: Mon Feb 24 2025 - 12:34:04 EST
The users of charlcd_alloc() call for additional memory allocation.
We may do it at the time of the main call as many other APIs do.
For this partially revert the change that brought us to the current
state of affairs, and refactor the code based on the original implementation.
Andy Shevchenko (7):
auxdisplay: charlcd: Partially revert "Move hwidth and bwidth to
struct hd44780_common"
auxdisplay: lcd2s: Allocate memory for custom data in charlcd_alloc()
auxdisplay: hd44780: Introduce hd44780_common_free()
auxdisplay: hd44780: Make use of hd44780_common_free()
auxdisplay: panel: Make use of hd44780_common_free()
auxdisplay: hd44780: Call charlcd_alloc() from hd44780_common_alloc()
auxdisplay: hd44780: Rename hd to hdc in hd44780_common_alloc()
drivers/auxdisplay/charlcd.c | 5 +++--
drivers/auxdisplay/charlcd.h | 5 +++--
drivers/auxdisplay/hd44780.c | 19 ++++++-------------
drivers/auxdisplay/hd44780_common.c | 24 ++++++++++++++++--------
drivers/auxdisplay/hd44780_common.h | 4 +++-
drivers/auxdisplay/lcd2s.c | 12 ++++--------
drivers/auxdisplay/panel.c | 17 +++++------------
7 files changed, 40 insertions(+), 46 deletions(-)
--
2.45.1.3035.g276e886db78b