diff mbox

Input: synaptics-rmi4 - use dev_driver_string when registering interrupt

Message ID 1486941088-3730-1-git-send-email-nick@shmanahar.org (mailing list archive)
State New, archived
Headers show

Commit Message

Nick Dyer Feb. 12, 2017, 11:11 p.m. UTC
When IRQ handling was moved to rmi_driver in 3aeed5b the naming of the
interrupt changed from "rmi4_i2c" to "2-0020" (or similar). This patch restores
the previous behaviour and makes the interrupt easier to identify in
/proc/interrupts.

Signed-off-by: Nick Dyer <nick@shmanahar.org>
---
 drivers/input/rmi4/rmi_driver.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Chris Healy Feb. 12, 2017, 11:17 p.m. UTC | #1
Tested on a custom ARM platform with both the S7300 and S7817
Synaptics controllers.  Both provide the "rmi4_i2c" string now.

Tested-by: Chris Healy <cphealy@gmail.com>


On Sun, Feb 12, 2017 at 3:11 PM, Nick Dyer <nick@shmanahar.org> wrote:
> When IRQ handling was moved to rmi_driver in 3aeed5b the naming of the
> interrupt changed from "rmi4_i2c" to "2-0020" (or similar). This patch restores
> the previous behaviour and makes the interrupt easier to identify in
> /proc/interrupts.
>
> Signed-off-by: Nick Dyer <nick@shmanahar.org>
> ---
>  drivers/input/rmi4/rmi_driver.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/input/rmi4/rmi_driver.c b/drivers/input/rmi4/rmi_driver.c
> index 23d705b..e3a6c7c 100644
> --- a/drivers/input/rmi4/rmi_driver.c
> +++ b/drivers/input/rmi4/rmi_driver.c
> @@ -252,7 +252,7 @@ static int rmi_irq_init(struct rmi_device *rmi_dev)
>
>         ret = devm_request_threaded_irq(&rmi_dev->dev, pdata->irq, NULL,
>                                         rmi_irq_fn, irq_flags | IRQF_ONESHOT,
> -                                       dev_name(rmi_dev->xport->dev),
> +                                       dev_driver_string(rmi_dev->xport->dev),
>                                         rmi_dev);
>         if (ret < 0) {
>                 dev_err(&rmi_dev->dev, "Failed to register interrupt %d\n",
> --
> 2.7.4
>
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/input/rmi4/rmi_driver.c b/drivers/input/rmi4/rmi_driver.c
index 23d705b..e3a6c7c 100644
--- a/drivers/input/rmi4/rmi_driver.c
+++ b/drivers/input/rmi4/rmi_driver.c
@@ -252,7 +252,7 @@  static int rmi_irq_init(struct rmi_device *rmi_dev)
 
 	ret = devm_request_threaded_irq(&rmi_dev->dev, pdata->irq, NULL,
 					rmi_irq_fn, irq_flags | IRQF_ONESHOT,
-					dev_name(rmi_dev->xport->dev),
+					dev_driver_string(rmi_dev->xport->dev),
 					rmi_dev);
 	if (ret < 0) {
 		dev_err(&rmi_dev->dev, "Failed to register interrupt %d\n",