summaryrefslogtreecommitdiffstats
path: root/drivers/hid
diff options
context:
space:
mode:
authorWei Yongjun <weiyj.lk@gmail.com>2016-08-21 15:29:58 +0000
committerJiri Kosina <jkosina@suse.cz>2016-08-29 09:36:19 +0200
commite8c61135956ce35fcd7661f52ed3a7e21eb86bfb (patch)
tree956dbb9061a9bf558e1ad02d6c9d6b23ce2d77fe /drivers/hid
parent37becf6e603236a19660e76a3b82f9cc25972e2d (diff)
downloadlinux-e8c61135956ce35fcd7661f52ed3a7e21eb86bfb.tar.bz2
HID: intel_ish-hid: Convert list_for_each to entry variant
convert list_for_each() to list_for_each_entry() where applicable. Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com> Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid')
-rw-r--r--drivers/hid/intel-ish-hid/ishtp/bus.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/hid/intel-ish-hid/ishtp/bus.c b/drivers/hid/intel-ish-hid/ishtp/bus.c
index 0183eacaf6c9..8a1bb8c25357 100644
--- a/drivers/hid/intel-ish-hid/ishtp/bus.c
+++ b/drivers/hid/intel-ish-hid/ishtp/bus.c
@@ -380,11 +380,9 @@ static struct ishtp_cl_device *ishtp_bus_add_device(struct ishtp_device *dev,
struct ishtp_cl_device *device;
int status;
unsigned long flags;
- struct list_head *pos;
spin_lock_irqsave(&dev->device_list_lock, flags);
- list_for_each(pos, &dev->device_list) {
- device = list_entry(pos, struct ishtp_cl_device, device_link);
+ list_for_each_entry(device, &dev->device_list, device_link) {
if (!strcmp(name, dev_name(&device->dev))) {
device->fw_client = &dev->fw_clients[
dev->fw_client_presentation_num - 1];