22 struct push_switch *psw = platform_get_drvdata(pdev);
37 if (mask & (1 << psw_info->
bit)) {
38 psw->
state = !!(mask & (1 << psw_info->
bit));
53 static struct resource psw_resources[] = {
65 .irq_handler = psw_irq_handler,
69 .name =
"push-switch",
72 .resource = psw_resources,
74 .platform_data = &s2_platform_data,
83 .irq_handler = psw_irq_handler,
87 .name =
"push-switch",
90 .resource = psw_resources,
92 .platform_data = &s3_platform_data,
101 .irq_handler = psw_irq_handler,
105 .name =
"push-switch",
108 .resource = psw_resources,
110 .platform_data = &s4_platform_data,
115 &s2_switch_device, &s3_switch_device, &s4_switch_device,
118 static int __init psw_init(
void)