22 #include <linux/module.h>
23 #include <linux/types.h>
24 #include <linux/errno.h>
71 static void ams_handle_irq(
void *
data)
86 .handler = ams_handle_irq,
87 .data = &ams_freefall_irq_data,
93 .handler = ams_handle_irq,
94 .data = &ams_shock_irq_data,
108 irqs_to_clear =
ams_info.worker_irqs;
124 spin_unlock_irqrestore(&
ams_info.irq_lock, flags);
147 &ams_freefall_client);
159 goto release_freefall;
178 goto release_device_file;
200 #ifdef CONFIG_SENSORS_AMS_I2C
207 #ifdef CONFIG_SENSORS_AMS_PMU
239 static void __exit ams_exit(
void)