leds: leds-lp8550: Disable suspend/resume
authorSergey Kudakov <sergey.kudakov@motorola.com>
Wed, 20 Oct 2010 20:40:35 +0000 (15:40 -0500)
committerRebecca Schultz Zavin <rebecca@android.com>
Sat, 23 Oct 2010 00:41:34 +0000 (17:41 -0700)
Prevent led driver from resuming  while display is suspended

Change-Id: I8881d563cbeff472b99f618f30257a9ca66d9c7e
Signed-off-by: Sergey Kudakov <sergey.kudakov@motorola.com>
drivers/leds/leds-lp8550.c

index dfe607ad268cee43f715302df15742da9407b072..d2d5cc0b3b5287c0052b612d7729dd15b9dde92f 100755 (executable)
@@ -399,32 +399,6 @@ static int ld_lp8550_remove(struct i2c_client *client)
        return 0;
 }
 
-static int lp8550_suspend(struct i2c_client *client, pm_message_t mesg)
-{
-       struct lp8550_data *led_data = i2c_get_clientdata(client);
-
-       if (lp8550_debug)
-               pr_info("%s: Suspending\n", __func__);
-
-       lp8550_write_reg(led_data, LP8550_DEVICE_CTRL,
-        led_data->led_pdata->dev_ctrl_config & LD_LP8550_ON_OFF_MASK);
-
-       return 0;
-}
-
-static int lp8550_resume(struct i2c_client *client)
-{
-       struct lp8550_data *led_data = i2c_get_clientdata(client);
-
-       if (lp8550_debug)
-               pr_info("%s: Resuming with brightness %i\n",
-                       __func__, led_data->brightness);
-
-       lp8550_brightness_write(led_data);
-
-       return 0;
-}
-
 static const struct i2c_device_id lp8550_id[] = {
        {LD_LP8550_NAME, 0},
        {}
@@ -433,8 +407,6 @@ static const struct i2c_device_id lp8550_id[] = {
 static struct i2c_driver ld_lp8550_i2c_driver = {
        .probe = ld_lp8550_probe,
        .remove = ld_lp8550_remove,
-       .suspend        = lp8550_suspend,
-       .resume         = lp8550_resume,
        .id_table = lp8550_id,
        .driver = {
                   .name = LD_LP8550_NAME,