From d71179e7d6f89d0f94a1bffa57b461f0d6bd89b9 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Thu, 15 Apr 2010 15:23:09 -0700 Subject: [PATCH] qtouch: Fix slab.h includes for 2.6.34-rc4 Change-Id: I2da10ee5a45f5e29a39b23a9f0352ffa3d260b5e Signed-off-by: Colin Cross --- drivers/input/touchscreen/qtouch_obp_ts.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/qtouch_obp_ts.c b/drivers/input/touchscreen/qtouch_obp_ts.c index 809dec35b1c9..54e4e208ad0f 100644 --- a/drivers/input/touchscreen/qtouch_obp_ts.c +++ b/drivers/input/touchscreen/qtouch_obp_ts.c @@ -27,6 +27,7 @@ #include #include #include +#include #define IGNORE_CHECKSUM_MISMATCH @@ -234,7 +235,7 @@ static struct qtm_object *find_object_rid(struct qtouch_ts_data *ts, int rid) { int i; - for_each_bit(i, ts->obj_map, QTM_OBP_MAX_OBJECT_NUM) { + for_each_set_bit(i, ts->obj_map, QTM_OBP_MAX_OBJECT_NUM) { struct qtm_object *obj = &ts->obj_tbl[i]; if ((rid >= obj->report_id_min) && (rid <= obj->report_id_max)) -- 2.34.1