mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
iio: light: hid-sensor-als: use u32 instead of unsigned
Prefer 'u32' instead of bare 'unsigned' for usage_id variable. This matches expected callback API type and improves code clarity. No functional change. Signed-off-by: Sanjay Chitroda <sanjayembeddedse@gmail.com> Reviewed-by: Maxwell Doose <m32285159@gmail.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
parent
b720b5d683
commit
d5b231ec6b
|
|
@ -241,7 +241,7 @@ static const struct iio_info als_info = {
|
|||
|
||||
/* Callback handler to send event after all samples are received and captured */
|
||||
static int als_proc_event(struct hid_sensor_hub_device *hsdev,
|
||||
unsigned usage_id,
|
||||
u32 usage_id,
|
||||
void *priv)
|
||||
{
|
||||
struct iio_dev *indio_dev = platform_get_drvdata(priv);
|
||||
|
|
@ -263,7 +263,7 @@ static int als_proc_event(struct hid_sensor_hub_device *hsdev,
|
|||
|
||||
/* Capture samples in local storage */
|
||||
static int als_capture_sample(struct hid_sensor_hub_device *hsdev,
|
||||
unsigned usage_id,
|
||||
u32 usage_id,
|
||||
size_t raw_len, char *raw_data,
|
||||
void *priv)
|
||||
{
|
||||
|
|
@ -305,7 +305,7 @@ static int als_capture_sample(struct hid_sensor_hub_device *hsdev,
|
|||
/* Parse report which is specific to an usage id*/
|
||||
static int als_parse_report(struct platform_device *pdev,
|
||||
struct hid_sensor_hub_device *hsdev,
|
||||
unsigned usage_id,
|
||||
u32 usage_id,
|
||||
struct als_state *st)
|
||||
{
|
||||
struct iio_chan_spec *channels;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user