aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rwxr-xr-xarch/arm/mach-omap2/board-tuna-vibrator.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/arch/arm/mach-omap2/board-tuna-vibrator.c b/arch/arm/mach-omap2/board-tuna-vibrator.c
index c9d3055..c9e6d30 100755
--- a/arch/arm/mach-omap2/board-tuna-vibrator.c
+++ b/arch/arm/mach-omap2/board-tuna-vibrator.c
@@ -48,12 +48,7 @@ static struct vibrator {
static ssize_t pwmvalue_show(struct device *dev,
struct device_attribute *attr, char *buf)
{
- int count;
-
- count = sprintf(buf, "%lu\n", pwmval);
- pr_info("vibrator: pwmval: %lu\n", pwmval);
-
- return count;
+ return sprintf(buf, "%lu\n", pwmval);
}
ssize_t pwmvalue_store(struct device *dev,
@@ -63,7 +58,7 @@ ssize_t pwmvalue_store(struct device *dev,
if (kstrtoul(buf, 0, &pwmval))
pr_err("vibrator: error in storing pwm value\n");
- pr_info("vibrator: pwmval: %lu\n", pwmval);
+ pr_info("vibrator: pwmval set to %lu\n", pwmval);
return size;
}
@@ -163,7 +158,7 @@ static void vibrator_enable(struct timed_output_dev *dev, int value)
hrtimer_cancel(&vibdata.timer);
if (value) {
- pr_info("vibrator: value=%d, pwmval=%lu\n", value, pwmval);
+ pr_debug("vibrator: value=%d, pwmval=%lu\n", value, pwmval);
wake_lock(&vibdata.wklock);
vibrator_timer_init();
gpio_set_value(vibdata.gpio_en, 1);