]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
auxdisplay: hd44780: Rename hd to hdc in hd44780_common_alloc()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 24 Feb 2025 17:27:44 +0000 (19:27 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 10 Mar 2025 16:03:02 +0000 (18:03 +0200)
The hd44780_common_alloc() uses hd for local variable while
the respective header uses hdc, rename to make it consistent
and avoid potential confuse with the drivers that use both
for different reasons. No functional changes intended.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/auxdisplay/hd44780_common.c

index fb340d18fcada674f23a86946155fee36f837d20..1792fe2a44603ee63b55215ade7262e8e559d445 100644 (file)
@@ -353,17 +353,17 @@ EXPORT_SYMBOL_GPL(hd44780_common_redefine_char);
 
 struct charlcd *hd44780_common_alloc(void)
 {
-       struct hd44780_common *hd;
+       struct hd44780_common *hdc;
        struct charlcd *lcd;
 
-       lcd = charlcd_alloc(sizeof(*hd));
+       lcd = charlcd_alloc(sizeof(*hdc));
        if (!lcd)
                return NULL;
 
-       hd = lcd->drvdata;
-       hd->ifwidth = 8;
-       hd->bwidth = DEFAULT_LCD_BWIDTH;
-       hd->hwidth = DEFAULT_LCD_HWIDTH;
+       hdc = lcd->drvdata;
+       hdc->ifwidth = 8;
+       hdc->bwidth = DEFAULT_LCD_BWIDTH;
+       hdc->hwidth = DEFAULT_LCD_HWIDTH;
        return lcd;
 }
 EXPORT_SYMBOL_GPL(hd44780_common_alloc);