Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 53429
b: refs/heads/master
c: b356872
h: refs/heads/master
i:
  53427: 36defe4
v: v3
  • Loading branch information
Dmitry Torokhov committed Apr 12, 2007
1 parent 81348ee commit 02ac437
Show file tree
Hide file tree
Showing 15 changed files with 14 additions and 21 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8715c1cfadf8cce24e79d254f95bd4a84c7741f0
refs/heads/master: b356872fa48a3f6b6f187444b0ea55e6e21c3575
6 changes: 3 additions & 3 deletions trunk/drivers/input/keyboard/aaed2000_kbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ static void aaedkbd_work(void *data)

static int aaedkbd_open(struct input_dev *indev)
{
struct aaedkbd *aaedkbd = indev->private;
struct aaedkbd *aaedkbd = input_get_drvdata(indev);

schedule_delayed_work(&aaedkbd->workq, msecs_to_jiffies(SCAN_INTERVAL));

Expand All @@ -106,7 +106,7 @@ static int aaedkbd_open(struct input_dev *indev)

static void aaedkbd_close(struct input_dev *indev)
{
struct aaedkbd *aaedkbd = indev->private;
struct aaedkbd *aaedkbd = input_get_drvdata(indev);

cancel_delayed_work(&aaedkbd->workq);
flush_scheduled_work();
Expand Down Expand Up @@ -142,7 +142,7 @@ static int __devinit aaedkbd_probe(struct platform_device *pdev)
input_dev->id.product = 0x0001;
input_dev->id.version = 0x0100;
input_dev->cdev.dev = &pdev->dev;
input_dev->private = aaedkbd;
input_set_drvdata(input_dev, aaedkbd);

input_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_REP);
input_dev->keycode = aaedkbd->keycode;
Expand Down
5 changes: 3 additions & 2 deletions trunk/drivers/input/keyboard/atkbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ static void atkbd_event_work(struct work_struct *work)

static int atkbd_event(struct input_dev *dev, unsigned int type, unsigned int code, int value)
{
struct atkbd *atkbd = dev->private;
struct atkbd *atkbd = input_get_drvdata(dev);

if (!atkbd->write)
return -1;
Expand Down Expand Up @@ -883,9 +883,10 @@ static void atkbd_set_device_attrs(struct atkbd *atkbd)
input_dev->id.product = atkbd->translated ? 1 : atkbd->set;
input_dev->id.version = atkbd->id;
input_dev->event = atkbd_event;
input_dev->private = atkbd;
input_dev->cdev.dev = &atkbd->ps2dev.serio->dev;

input_set_drvdata(input_dev, atkbd);

input_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_REP) | BIT(EV_MSC);

if (atkbd->write) {
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/input/keyboard/corgikbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,6 @@ static int __init corgikbd_probe(struct platform_device *pdev)
input_dev->id.product = 0x0001;
input_dev->id.version = 0x0100;
input_dev->cdev.dev = &pdev->dev;
input_dev->private = corgikbd;

input_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_REP) | BIT(EV_PWR) | BIT(EV_SW);
input_dev->keycode = corgikbd->keycode;
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/input/keyboard/gpio_keys.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ static int __devinit gpio_keys_probe(struct platform_device *pdev)
input->name = pdev->name;
input->phys = "gpio-keys/input0";
input->cdev.dev = &pdev->dev;
input->private = pdata;

input->id.bustype = BUS_HOST;
input->id.vendor = 0x0001;
Expand Down
2 changes: 0 additions & 2 deletions trunk/drivers/input/keyboard/hil_kbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,6 @@ static int hil_kbd_connect(struct serio *serio, struct serio_driver *drv)
if (!kbd->dev)
goto bail0;

kbd->dev->private = kbd;

if (serio_open(serio, drv))
goto bail1;

Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/input/keyboard/hilkbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,6 @@ hil_keyb_init(void)
hil_dev.dev = input_allocate_device();
if (!hil_dev.dev)
return -ENOMEM;
hil_dev.dev->private = &hil_dev;

#if defined(CONFIG_HP300)
if (!hwreg_present((void *)(HILBASE + HIL_DATA))) {
Expand Down
5 changes: 3 additions & 2 deletions trunk/drivers/input/keyboard/lkkbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ static int
lkkbd_event (struct input_dev *dev, unsigned int type, unsigned int code,
int value)
{
struct lkkbd *lk = dev->private;
struct lkkbd *lk = input_get_drvdata (dev);
unsigned char leds_on = 0;
unsigned char leds_off = 0;

Expand Down Expand Up @@ -668,7 +668,8 @@ lkkbd_connect (struct serio *serio, struct serio_driver *drv)
input_dev->id.version = 0x0100;
input_dev->cdev.dev = &serio->dev;
input_dev->event = lkkbd_event;
input_dev->private = lk;

input_set_drvdata (input_dev, lk);

set_bit (EV_KEY, input_dev->evbit);
set_bit (EV_LED, input_dev->evbit);
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/input/keyboard/locomokbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,6 @@ static int locomokbd_probe(struct locomo_dev *dev)
input_dev->id.vendor = 0x0001;
input_dev->id.product = 0x0001;
input_dev->id.version = 0x0100;
input_dev->private = locomokbd;

input_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_REP);
input_dev->keycode = locomokbd->keycode;
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/input/keyboard/newtonkbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ static int nkbd_connect(struct serio *serio, struct serio_driver *drv)
input_dev->id.product = 0x0001;
input_dev->id.version = 0x0100;
input_dev->cdev.dev = &serio->dev;
input_dev->private = nkbd;

input_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_REP);
input_dev->keycode = nkbd->keycode;
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/input/keyboard/omap-keypad.c
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,6 @@ static int __init omap_kp_probe(struct platform_device *pdev)
input_dev->name = "omap-keypad";
input_dev->phys = "omap-keypad/input0";
input_dev->cdev.dev = &pdev->dev;
input_dev->private = omap_kp;

input_dev->id.bustype = BUS_HOST;
input_dev->id.vendor = 0x0001;
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/input/keyboard/spitzkbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,6 @@ static int __init spitzkbd_probe(struct platform_device *dev)

spitzkbd->input = input_dev;

input_dev->private = spitzkbd;
input_dev->name = "Spitz Keyboard";
input_dev->phys = spitzkbd->phys;
input_dev->cdev.dev = &dev->dev;
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/input/keyboard/stowaway.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ static int skbd_connect(struct serio *serio, struct serio_driver *drv)
input_dev->id.product = 0x0001;
input_dev->id.version = 0x0100;
input_dev->cdev.dev = &serio->dev;
input_dev->private = skbd;

input_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_REP);
input_dev->keycode = skbd->keycode;
Expand Down
6 changes: 4 additions & 2 deletions trunk/drivers/input/keyboard/sunkbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ static irqreturn_t sunkbd_interrupt(struct serio *serio,

static int sunkbd_event(struct input_dev *dev, unsigned int type, unsigned int code, int value)
{
struct sunkbd *sunkbd = dev->private;
struct sunkbd *sunkbd = input_get_drvdata(dev);

switch (type) {

Expand Down Expand Up @@ -272,7 +272,9 @@ static int sunkbd_connect(struct serio *serio, struct serio_driver *drv)
input_dev->id.product = sunkbd->type;
input_dev->id.version = 0x0100;
input_dev->cdev.dev = &serio->dev;
input_dev->private = sunkbd;

input_set_drvdata(input_dev, sunkbd);

input_dev->event = sunkbd_event;

input_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_LED) | BIT(EV_SND) | BIT(EV_REP);
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/input/keyboard/xtkbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ static int xtkbd_connect(struct serio *serio, struct serio_driver *drv)
input_dev->id.product = 0x0001;
input_dev->id.version = 0x0100;
input_dev->cdev.dev = &serio->dev;
input_dev->private = xtkbd;

input_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_REP);
input_dev->keycode = xtkbd->keycode;
Expand Down

0 comments on commit 02ac437

Please sign in to comment.