Commit | Line | Data |
---|---|---|
718e05ed LP |
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 | ||
7 | struct 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 | ||
3fc04dd7 | 15 | hd->ifwidth = 8; |
2545c1c9 LP |
16 | hd->bwidth = DEFAULT_LCD_BWIDTH; |
17 | hd->hwidth = DEFAULT_LCD_HWIDTH; | |
718e05ed LP |
18 | return hd; |
19 | } | |
20 | EXPORT_SYMBOL_GPL(hd44780_common_alloc); | |
21 | ||
22 | MODULE_LICENSE("GPL"); |