Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iio: apple-ib-als: remove usage of iio_priv_to_dev() helper #52

Open
wants to merge 1 commit into
base: mbp15
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions apple-ib-als.c
Original file line number Diff line number Diff line change
Expand Up @@ -463,9 +463,9 @@ static void appleals_config_sensor(struct appleals_device *als_dev,
hid_hw_power(als_dev->hid_dev, PM_HINT_NORMAL);
}

static int appleals_config_iio(struct appleals_device *als_dev)
static int appleals_config_iio(struct iio_dev *iio_dev)
{
struct iio_dev *iio_dev = iio_priv_to_dev(als_dev);
struct appleals_device *als_dev = iio_priv(iio_dev);
struct iio_trigger *iio_trig;
struct device *parent = &als_dev->hid_dev->dev;
int rc;
Expand Down Expand Up @@ -566,7 +566,7 @@ static int appleals_probe(struct hid_device *hdev,
appleals_config_sensor(als_dev, false, als_dev->cur_sensitivity);
hid_device_io_stop(hdev);

rc = appleals_config_iio(als_dev);
rc = appleals_config_iio(iio_dev);
if (rc)
return rc;

Expand Down