Commit 324992f7 authored by Juha Yrjola's avatar Juha Yrjola

ARM: OMAP: Make GPIO switch driver use sysfs_notify

Signed-off-by: default avatarJuha Yrjola <juha.yrjola@solidboot.com>
parent d78bae00
......@@ -129,9 +129,9 @@ static void gpio_sw_handler(void *data)
return;
if (sw->type == OMAP_GPIO_SWITCH_TYPE_CONNECTION)
kobject_uevent(&sw->pdev.dev.kobj, KOBJ_CHANGE);
sysfs_notify(&sw->pdev.dev.kobj, NULL, "connection");
else
kobject_uevent(&sw->pdev.dev.kobj, KOBJ_CHANGE);
sysfs_notify(&sw->pdev.dev.kobj, NULL, "cover");
sw->state = state;
if (omap_get_gpio_datain(sw->gpio))
set_irq_type(OMAP_GPIO_IRQ(sw->gpio), IRQT_FALLING);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment