Skip to content

Commit 2c4849a

Browse files
committed
auxdisplay: hd44780: Rename hd to hdc in hd44780_common_alloc()
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>
1 parent 65f095b commit 2c4849a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

drivers/auxdisplay/hd44780_common.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -353,17 +353,17 @@ EXPORT_SYMBOL_GPL(hd44780_common_redefine_char);
353353

354354
struct charlcd *hd44780_common_alloc(void)
355355
{
356-
struct hd44780_common *hd;
356+
struct hd44780_common *hdc;
357357
struct charlcd *lcd;
358358

359-
lcd = charlcd_alloc(sizeof(*hd));
359+
lcd = charlcd_alloc(sizeof(*hdc));
360360
if (!lcd)
361361
return NULL;
362362

363-
hd = lcd->drvdata;
364-
hd->ifwidth = 8;
365-
hd->bwidth = DEFAULT_LCD_BWIDTH;
366-
hd->hwidth = DEFAULT_LCD_HWIDTH;
363+
hdc = lcd->drvdata;
364+
hdc->ifwidth = 8;
365+
hdc->bwidth = DEFAULT_LCD_BWIDTH;
366+
hdc->hwidth = DEFAULT_LCD_HWIDTH;
367367
return lcd;
368368
}
369369
EXPORT_SYMBOL_GPL(hd44780_common_alloc);

0 commit comments

Comments
 (0)