aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/input/touchscreen/cyttsp4_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/cyttsp4_core.c b/drivers/input/touchscreen/cyttsp4_core.c
index 963da052c15e..7aa4a349a07e 100644
--- a/drivers/input/touchscreen/cyttsp4_core.c
+++ b/drivers/input/touchscreen/cyttsp4_core.c
@@ -153,7 +153,7 @@ static int cyttsp4_hw_reset(struct cyttsp4 *cd)
153 */ 153 */
154static int cyttsp4_bits_2_bytes(unsigned int nbits, size_t *max) 154static int cyttsp4_bits_2_bytes(unsigned int nbits, size_t *max)
155{ 155{
156 *max = 1 << nbits; 156 *max = 1UL << nbits;
157 return (nbits + 7) / 8; 157 return (nbits + 7) / 8;
158} 158}
159 159