Skip to content

auxdisplay: charlcd: Refactor memory allocation

Andy Shevchenko lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 24 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7auxdisplay: charlcd: Partially revert "Move hwidth and bwidth to struct hd44780_common"drivers/auxdisplay/charlcd.c drivers/auxdisplay/charlcd.h drivers/auxdisplay/hd44780.c +2 more+9 -79 replies
2/7auxdisplay: lcd2s: Allocate memory for custom data in charlcd_alloc()drivers/auxdisplay/lcd2s.c+4 -81 reply
3/7auxdisplay: hd44780: Introduce hd44780_common_free()drivers/auxdisplay/hd44780_common.c drivers/auxdisplay/hd44780_common.h+8 -01 reply
4/7auxdisplay: hd44780: Make use of hd44780_common_free()drivers/auxdisplay/hd44780.c+2 -32 replies
5/7auxdisplay: panel: Make use of hd44780_common_free()drivers/auxdisplay/panel.c+2 -23 replies
6/7auxdisplay: hd44780: Call charlcd_alloc() from hd44780_common_alloc()drivers/auxdisplay/hd44780.c drivers/auxdisplay/hd44780_common.c drivers/auxdisplay/hd44780_common.h +1 more+21 -326 replies
7/7auxdisplay: hd44780: Rename hd to hdc in hd44780_common_alloc()drivers/auxdisplay/hd44780_common.c+6 -60 replies

Reviews trailers per patch

6 of 7 patches have a Reviewed-by or Acked-by.

PatchGeert Uytterhoeven
1/7R-b
2/7R-b
3/7R-b
4/7R-b
5/7R-b
6/7R-b
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH v1 0/7] auxdisplay: charlcd: Refactor memory allocation

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(-)
Signature · 1 line
2.45.1.3035.g276e886db78b