]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
HID: hid-sensor-custom: simplify getting .driver_data
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Tue, 19 Mar 2019 16:36:38 +0000 (17:36 +0100)
committerJiri Kosina <jkosina@suse.cz>
Wed, 27 Mar 2019 13:06:19 +0000 (14:06 +0100)
commit77f9f7721866c97ea6314e05a83d50fc97bb5b1c
treeb1e5348dc1abc31c9237d1de4e3921365685da1d
parentc6400e5cef5eafc259e649ceedc4c7eecc9069d8
HID: hid-sensor-custom: simplify getting .driver_data

We should get 'driver_data' from 'struct device' directly. Going via
platform_device is an unneeded step back and forth.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-sensor-custom.c