Skip to contentSkip to conversation

auxdisplay: ht16k33: Use generic device properties function

PATCH In review Robin van der Gracht 2 participants 2 messages Aug 16, 2017

Subsystems (3)
lore
Share & tools
lore

Robin van der Gracht

author maintainer
#0 lore raw

PATCH 1/1 auxdisplay: ht16k33: Use generic device properties function

matrix_keypad_parse_of_params() was replaced early this year.

---

Early this year Dmitry Torokhov introduced a switch to using generic device properties instead of being OF-specific.

Somehow this driver wasn't included in the update.

For reference: https://patchwork.kernel.org/patch/9527095/

 drivers/auxdisplay/ht16k33.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/auxdisplay/ht16k33.c +1 -1
index fbfa5b4cc567..99ce9731fc9c 100644
@@ -354,7 +354,7 @@ static int ht16k33_keypad_probe(struct i2c_client *client,
 		return err;
 	}
 
-	err = matrix_keypad_parse_of_params(&client->dev, &rows, &cols);
+	err = matrix_keypad_parse_properties(&client->dev, &rows, &cols);
 	if (err)
 		return err;
 	if (rows > HT16K33_MATRIX_KEYPAD_MAX_ROWS ||
Signature · 1 line
2.11.0
#1 lore raw
Quoted 9 lines · Robin van der Gracht

matrix_keypad_parse_of_params() was replaced early this year.

---

Early this year Dmitry Torokhov introduced a switch to using generic device properties instead of being OF-specific.

Somehow this driver wasn't included in the update.

It was outside of "input" tree so I did not update directly, so I kept the old name available. I meant to send a separate patch updating ht16k33, but I guess I forgot...

FWIW Reviewed-by: Dmitry Torokhov <[email protected]>

I think you want to send it to GregKH as he was picking up the other ht16k33 patches.

Quoted 22 lines

For reference: https://patchwork.kernel.org/patch/9527095/

 drivers/auxdisplay/ht16k33.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/auxdisplay/ht16k33.c +1 -1
index fbfa5b4cc567..99ce9731fc9c 100644
@@ -354,7 +354,7 @@ static int ht16k33_keypad_probe(struct i2c_client *client,
 		return err;
 	}
 
-	err = matrix_keypad_parse_of_params(&client->dev, &rows, &cols);
+	err = matrix_keypad_parse_properties(&client->dev, &rows, &cols);
 	if (err)
 		return err;
 	if (rows > HT16K33_MATRIX_KEYPAD_MAX_ROWS ||
Signature · 1 line
2.11.0

Thanks.

Signature · 1 line
Dmitry