input device rebranding hacks
authorGrazvydas Ignotas <notasas@gmail.com>
Fri, 10 Feb 2012 18:06:54 +0000 (20:06 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Fri, 17 Feb 2012 22:00:15 +0000 (00:00 +0200)
trying to maintain old device names seen by userspace

drivers/input/misc/twl4030-pwrbutton.c
drivers/input/touchscreen/ads7846.c

index 38e4b50..05c1a58 100644 (file)
@@ -66,7 +66,7 @@ static int __init twl4030_pwrbutton_probe(struct platform_device *pdev)
 
        pwr->evbit[0] = BIT_MASK(EV_KEY);
        pwr->keybit[BIT_WORD(KEY_POWER)] = BIT_MASK(KEY_POWER);
-       pwr->name = "twl4030_pwrbutton";
+       pwr->name = "power-button";
        pwr->phys = "twl4030_pwrbutton/input0";
        pwr->dev.parent = &pdev->dev;
 
index de31ec6..6e8caea 100644 (file)
@@ -1281,7 +1281,7 @@ static int __devinit ads7846_probe(struct spi_device *spi)
        ts->wait_for_sync = pdata->wait_for_sync ? : null_wait_for_sync;
 
        snprintf(ts->phys, sizeof(ts->phys), "%s/input0", dev_name(&spi->dev));
-       snprintf(ts->name, sizeof(ts->name), "ADS%d Touchscreen", ts->model);
+       snprintf(ts->name, sizeof(ts->name), "touchscreen");
 
        input_dev->name = ts->name;
        input_dev->phys = ts->phys;