From 5d520f034cf396eab693968e0aeb7e07aee01012 Mon Sep 17 00:00:00 2001 From: Markinus Date: Fri, 15 Oct 2010 00:05:05 +0200 Subject: [PATCH] htcleo: increases speed of lightsensorread and cleanups --- arch/arm/mach-msm/board-htcleo-bl.c | 2 +- arch/arm/mach-msm/board-htcleo-ls.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-msm/board-htcleo-bl.c b/arch/arm/mach-msm/board-htcleo-bl.c index 15aaaf8d..0f3500fb 100644 --- a/arch/arm/mach-msm/board-htcleo-bl.c +++ b/arch/arm/mach-msm/board-htcleo-bl.c @@ -58,7 +58,7 @@ int htcleo_brightness_set_bkl(uint8_t value) int ret; uint8_t cmd[2], data[2]; - printk("microp_set_bkl(%d)\n", value); + pr_debug("microp_set_bkl(%d)\n", value); if (value > 9) { diff --git a/arch/arm/mach-msm/board-htcleo-ls.c b/arch/arm/mach-msm/board-htcleo-ls.c index 6595d660..0b9d1095 100644 --- a/arch/arm/mach-msm/board-htcleo-ls.c +++ b/arch/arm/mach-msm/board-htcleo-ls.c @@ -47,9 +47,9 @@ user may be able to adjust time in future //#define LSENSOR_ABLK_ONLY 2 -#define LSENSOR_POLL_PROMESHUTOK 5000 +#define LSENSOR_POLL_PROMESHUTOK 1000 -#define D(x...) printk(x) +#define D(x...) pr_debug(x) // pr_info(x) @@ -115,7 +115,7 @@ int lightsensor_read_value(uint32_t *val) } *val = data[1] | (data[0] << 8); - printk("lsensor adc = %d\n", *val); + D("lsensor adc = %d\n", *val); return 0; }