static struct miscdevice max9635_misc_device = {
.minor = MISC_DYNAMIC_MINOR,
- .name = FOPS_MAX9635_NAME,
+ .name = MAX9635_NAME,
.fops = &max9635_misc_fops,
};
#ifdef DEBUG
goto error_input_allocate_failed;
}
- als_data->idev->name = "als";
+ als_data->idev->name = "max9635_als";
input_set_capability(als_data->idev, EV_MSC, MSC_RAW);
input_set_capability(als_data->idev, EV_LED, LED_MISC);
if (max9635_debug)
pr_info("%s: Suspending\n", __func__);
+ disable_irq_nosync(als_data->client->irq);
cancel_delayed_work_sync(&als_data->working_queue);
if (atomic_read(&als_data->enabled) == 1)
#ifndef _LINUX_MAX9635_H__
#define _LINUX_MAX9635_H__
-#define MAX9635_NAME "MAX9635_als"
-#define FOPS_MAX9635_NAME "MAX9635"
-
+#define MAX9635_NAME "max9635"
#ifdef __KERNEL__