hd44780_common.c (2545c1c948a6a765f1a0e820c7598138b36f67ef) | hd44780_common.c (3fc04dd7eb77b54228a17753ec01128417433e46) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2#include <linux/module.h> 3#include <linux/slab.h> 4 5#include "hd44780_common.h" 6 7struct hd44780_common *hd44780_common_alloc(void) 8{ 9 struct hd44780_common *hd; 10 11 hd = kzalloc(sizeof(*hd), GFP_KERNEL); 12 if (!hd) 13 return NULL; 14 | 1// SPDX-License-Identifier: GPL-2.0-or-later 2#include <linux/module.h> 3#include <linux/slab.h> 4 5#include "hd44780_common.h" 6 7struct hd44780_common *hd44780_common_alloc(void) 8{ 9 struct hd44780_common *hd; 10 11 hd = kzalloc(sizeof(*hd), GFP_KERNEL); 12 if (!hd) 13 return NULL; 14 |
15 hd->ifwidth = 8; |
|
15 hd->bwidth = DEFAULT_LCD_BWIDTH; 16 hd->hwidth = DEFAULT_LCD_HWIDTH; 17 return hd; 18} 19EXPORT_SYMBOL_GPL(hd44780_common_alloc); 20 21MODULE_LICENSE("GPL"); | 16 hd->bwidth = DEFAULT_LCD_BWIDTH; 17 hd->hwidth = DEFAULT_LCD_HWIDTH; 18 return hd; 19} 20EXPORT_SYMBOL_GPL(hd44780_common_alloc); 21 22MODULE_LICENSE("GPL"); |