summaryrefslogtreecommitdiff
path: root/drivers/misc/max1749.c
diff options
context:
space:
mode:
authorSumit Sharma <sumsharma@nvidia.com>2012-10-15 15:29:43 +0530
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 12:36:37 -0700
commit7b72d2dc1b7c8535949058bf7deda51a5e0773ac (patch)
tree15aa71d46dc337844da6e277beb3d32e25ae83d1 /drivers/misc/max1749.c
parent16908974800ae46c64b9896a76727e114262ba95 (diff)
misc: Removed warnings from MAX1749 driver
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> Rebase-Id: Raba8e5607081cbafadb4968207d05e83dc18f36d
Diffstat (limited to 'drivers/misc/max1749.c')
-rw-r--r--drivers/misc/max1749.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/misc/max1749.c b/drivers/misc/max1749.c
index 039a128c73aa..353fe9d8943b 100644
--- a/drivers/misc/max1749.c
+++ b/drivers/misc/max1749.c
@@ -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);