hd44780.c (a23e1966932464e1c5226cb9ac4ce1d5fc10ba22) | hd44780.c (632691ad83197227adc902793a2a3e10c04fe9b8) |
---|---|
1// SPDX-License-Identifier: GPL-2.0+ 2/* 3 * HD44780 Character LCD driver for Linux 4 * 5 * Copyright (C) 2000-2008, Willy Tarreau <w@1wt.eu> 6 * Copyright (C) 2016-2017 Glider bvba 7 */ 8 --- 216 unchanged lines hidden (view full) --- 225 hdc = hd44780_common_alloc(); 226 if (!hdc) 227 return -ENOMEM; 228 229 lcd = charlcd_alloc(); 230 if (!lcd) 231 goto fail1; 232 | 1// SPDX-License-Identifier: GPL-2.0+ 2/* 3 * HD44780 Character LCD driver for Linux 4 * 5 * Copyright (C) 2000-2008, Willy Tarreau <w@1wt.eu> 6 * Copyright (C) 2016-2017 Glider bvba 7 */ 8 --- 216 unchanged lines hidden (view full) --- 225 hdc = hd44780_common_alloc(); 226 if (!hdc) 227 return -ENOMEM; 228 229 lcd = charlcd_alloc(); 230 if (!lcd) 231 goto fail1; 232 |
233 hd = kzalloc(sizeof(struct hd44780), GFP_KERNEL); | 233 hd = kzalloc(sizeof(*hd), GFP_KERNEL); |
234 if (!hd) 235 goto fail2; 236 237 hdc->hd44780 = hd; 238 lcd->drvdata = hdc; 239 for (i = 0; i < ifwidth; i++) { 240 hd->pins[base + i] = devm_gpiod_get_index(dev, "data", i, 241 GPIOD_OUT_LOW); --- 111 unchanged lines hidden --- | 234 if (!hd) 235 goto fail2; 236 237 hdc->hd44780 = hd; 238 lcd->drvdata = hdc; 239 for (i = 0; i < ifwidth; i++) { 240 hd->pins[base + i] = devm_gpiod_get_index(dev, "data", i, 241 GPIOD_OUT_LOW); --- 111 unchanged lines hidden --- |