misc: Removed warnings from MAX1749 driver
Sumit Sharma [Mon, 15 Oct 2012 09:59:43 +0000 (14:59 +0530)]
Removed compile time warnings from MAX1749 vibrator driver

Change-Id: I71521ffb1621fb46cbc51c45d0de7b99836b51d7
Signed-off-by: Sumit Sharma <sumsharma@nvidia.com>
Reviewed-on: http://git-master/r/144526
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

drivers/misc/max1749.c

index 039a128..353fe9d 100644 (file)
@@ -32,7 +32,7 @@
 
 #include "../staging/android/timed_output.h"
 
-static struct vibrator_data {
+struct vibrator_data {
        struct timed_output_dev dev;
        struct hrtimer timer;
        struct regulator *regulator;
@@ -108,7 +108,7 @@ static struct timed_output_dev vibrator_dev = {
        .enable         = vibrator_enable,
 };
 
-static int vibrator_probe(void)
+static int vibrator_probe(struct platform_device *pdev)
 {
        int ret;
        data = kzalloc(sizeof(struct vibrator_data), GFP_KERNEL);
@@ -142,7 +142,7 @@ err:
        return ret;
 }
 
-static int vibrator_remove(void)
+static int vibrator_remove(struct platform_device *pdev)
 {
        timed_output_dev_unregister(&data->dev);
        regulator_put(data->regulator);