From 70f5583bed4af417abe2d5ec5aa78bd4c7d7b80b Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Sun, 21 Aug 2011 15:52:43 +0200 Subject: [PATCH] only set hw_debounce_time when hw_debounce is active --- MS2Debounce/assets/debounce.ko | Bin 96797 -> 96813 bytes debounce.c | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/MS2Debounce/assets/debounce.ko b/MS2Debounce/assets/debounce.ko index 12c2cfee26eeeee57a892196c37037ef5c790dba..fd7f4066d7fc02eaafc441ff23af8ec036747bc7 100644 GIT binary patch delta 1569 zcmZXUe`s4(6vxkbFRyvYT1?rGcJu8=?PlE+$#j2ALCkcZLv)Q*VKAYJLMZ!V9i2GI zNQJHKv_j+!PIZ;0LuV$LYe-7REbGe@+@RnJL$?1~YGBU&Q|KR?Fz5LuFC*xMyw5q` zd+xdSopbZPS+>qCTj@=_GvBr`$T@dcu)S$GJy!nO49^cujFs29y}^$5ZW=59^Wec> z4U}03MluVqnGP?8iNbbtq)gQ1o)2#4d3PcBGMC&f_TIJU5EIQT+R=fsNp#!NwG^3O z{J!vo{Ys$udXOk<=KCF+=m%x8P;UIybkmVQAs4w}tZKa)TCu_T{O{ji7(AQ3_T6MM z{`$JY$jWVp_`3V^@g5879ru}mgoO-AcWmH_l~l_s92hiB%d41upB-*X4Qu3TvW$$+ zoHDFFGMIA)t9e7s7UdtxX5}s4zoT5E{$1ZE&5BfwO2lJp^Ic@vGNfFo{;= z;T3M@Mg!~>2J`m~o^_8GU(+hi6*scuE*1B3vaoCNr;tkbFKy7LGxMxIJ7=Cwp+u;S zK}RdZ`>Guwf7IrgI{z=l>m^i{>CJix#bxROkeBJL+ALfYG=+U(peSm${x_g*-`X0c zhx#%I>Mr@Wpw5Q>K2NT64>AC?01XpkNW zz%asn8aJTN3Tfs$~DJB%R9wvZm} zNr|h=@5m7#E91Z?aut}6B_KAnHq7UZ)F{e)TE9x*DJ`wic!cN|a0Ss7pR+!%`NYS< z87Eq$?Lb^BsO#_vfZpfpANxA~zRnq2H9fVbiD%yDSqUBFN42M04)Tj} zbpKWDxS{uHy|Q*QaKD~cAKO+3Q@^39)bCcI77xEVs_}g?scGAAd3M)@!LJXSo?6|@ GcIaREfiVmK delta 1539 zcmZXUZD?C%6vxlGH@CT|DZ63QbhLA=o2Hc^Eh6Z?_*Q&DaOqxP1Bb2pAr?QRvciy# zq%iB|7gMfsTCFq=D{)rVaPO>cV`*e!Q9*`ZD)?bV3M)=<5D-PJ=bw8sf8u^?uDNba79)duNo3?xWFNZTZ67`nzW9weiKd^`tu*O(hS~-1SB zaV_c;*I+Y^xfi4T{ImOO^l`r8_S^e-(Vei9eAb(>pNu3{qC_RLoOf)Zv&yV@Gyb*d zU2;~9ZM~(<4u1Zvbghv7c7Fcoh3gaZTfEZNdtc=h_lMUm~aMTKpl(xpU&-J#!O=YkRss(`HnA=6>PbD=+^Y}Yt`gIPL(n#a@xkB2Ga z%B||>Lw{O{Ewf5TSq$}3$OUDROv~`SKNn^r?0ZuF+u&vQ9se2a;+nsc9hcAVQ?gOzHnigUu2;%e22)LUWl80I17! zun~oehURcC3^YaU_Wvd{o!i*Mbn9G5xR0iDA@$Uy0|4qaox4X}+>=35FV&f~-Qmg( z_mkz3XOW5v!6SiwVBcy5;Rs%+lhsrL_j2|7 zUUU{K!$hzh-GvVdVfm`V_Px)(y!;6JGG_8F?vojlQ+!>jKw35eBqHjy%R@j!h69`i z`lJlpfS8ouBJ8NmmP%dH3)F&0#$v~)#pN}N?~xvhy$o@xti*fXLP>L0%lxeRvH(&xHCbp^m?B=SM^Z zut@YFct(e7ap_1KS6<*{*`DPNz1Ih_{O}+q;3>UzLuYD-vN0W)vAyc!*kCc`jbKuS hRA}U5a)K4)XXGm_+l>JlXi9_MoVK`h_bA)3e*x$ZAz=Uj diff --git a/debounce.c b/debounce.c index be78a44..45b0140 100644 --- a/debounce.c +++ b/debounce.c @@ -38,7 +38,7 @@ static void hw_debounce_set(int enable, int time) { omap_set_gpio_debounce(gpio, enable); } - if (time != -1) { + if ((time != -1) && hw_debounce) { printk(KERN_INFO PREFIX "Setting hardware debounce time for GPIO %d to %d (%dus)\n", gpio, time, (time+1)*31); omap_set_gpio_debounce_time(gpio, time); } -- 2.39.5