Message ID | 20230513131712.259057-1-hdegoede@redhat.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | Input: novatek-nvt-ts - fix input_register_device() failure error message | expand |
On Sat, May 13, 2023 at 03:17:12PM +0200, Hans de Goede wrote: > Fix input_register_device() failure logging "failed to request irq" > as error message. > > Signed-off-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Cheers, Peter > --- > drivers/input/touchscreen/novatek-nvt-ts.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/input/touchscreen/novatek-nvt-ts.c b/drivers/input/touchscreen/novatek-nvt-ts.c > index 3e551f9d31d7..e7f30eeb91ca 100644 > --- a/drivers/input/touchscreen/novatek-nvt-ts.c > +++ b/drivers/input/touchscreen/novatek-nvt-ts.c > @@ -272,7 +272,7 @@ static int nvt_ts_probe(struct i2c_client *client) > > error = input_register_device(input); > if (error) { > - dev_err(dev, "failed to request irq: %d\n", error); > + dev_err(dev, "failed to register input device: %d\n", error); > return error; > } > > -- > 2.40.1 >
diff --git a/drivers/input/touchscreen/novatek-nvt-ts.c b/drivers/input/touchscreen/novatek-nvt-ts.c index 3e551f9d31d7..e7f30eeb91ca 100644 --- a/drivers/input/touchscreen/novatek-nvt-ts.c +++ b/drivers/input/touchscreen/novatek-nvt-ts.c @@ -272,7 +272,7 @@ static int nvt_ts_probe(struct i2c_client *client) error = input_register_device(input); if (error) { - dev_err(dev, "failed to request irq: %d\n", error); + dev_err(dev, "failed to register input device: %d\n", error); return error; }
Fix input_register_device() failure logging "failed to request irq" as error message. Signed-off-by: Hans de Goede <hdegoede@redhat.com> --- drivers/input/touchscreen/novatek-nvt-ts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)