Skip to content

Commit a33db27

Browse files
kromlihoyin0722
authored andcommitted
HSD #15016237011: tty: newhaven_lcd: Refactor function parameters
Refactor lcd_write and lcd_probe function parameters to align with latest main i2c function structures. Signed-off-by: Romli, Khairul Anuar <[email protected]>
1 parent 0447da7 commit a33db27

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/tty/newhaven_lcd.c

+2-3
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ static void lcd_backspace(struct lcd *lcd_data)
292292
}
293293

294294
static int lcd_write(struct tty_struct *tty, const unsigned char *buf,
295-
int count)
295+
unsigned int count)
296296
{
297297
struct lcd *lcd_data = tty->driver_data;
298298
int buf_i = 0, left;
@@ -489,8 +489,7 @@ static const struct tty_operations lcd_ops = {
489489
.write_room = lcd_write_room,
490490
};
491491

492-
static int lcd_probe(struct i2c_client *client,
493-
const struct i2c_device_id *i2c_id)
492+
static int lcd_probe(struct i2c_client *client)
494493
{
495494
struct device_node *np = client->dev.of_node;
496495
struct lcd *lcd_data;

0 commit comments

Comments
 (0)