Re: [PATCH 7/8] iio: pulsedlight-lidar-lite-v2: Set parent device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 14/02/17 15:40, Matt Ranostay wrote:
> On Sat, Feb 11, 2017 at 4:34 AM, Lars-Peter Clausen <lars@xxxxxxxxxx> wrote:
>> Initialize the parent of the IIO device to the device that registered it.
>> This makes sure that the IIO device appears the right level in the device
>> hierarchy.
>>
>> Signed-off-by: Lars-Peter Clausen <lars@xxxxxxxxxx>
> 
> Reviewed-by: Matt Ranostay <matt.ranostay@xxxxxxxxxxxx>
Applied.
> 
>> ---
>>  drivers/iio/proximity/pulsedlight-lidar-lite-v2.c | 1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/drivers/iio/proximity/pulsedlight-lidar-lite-v2.c b/drivers/iio/proximity/pulsedlight-lidar-lite-v2.c
>> index 20c16a0..36c1ddc 100644
>> --- a/drivers/iio/proximity/pulsedlight-lidar-lite-v2.c
>> +++ b/drivers/iio/proximity/pulsedlight-lidar-lite-v2.c
>> @@ -278,6 +278,7 @@ static int lidar_probe(struct i2c_client *client,
>>         indio_dev->name = LIDAR_DRV_NAME;
>>         indio_dev->channels = lidar_channels;
>>         indio_dev->num_channels = ARRAY_SIZE(lidar_channels);
>> +       indio_dev->dev.parent = &client->dev;
>>         indio_dev->modes = INDIO_DIRECT_MODE;
>>
>>         i2c_set_clientdata(client, indio_dev);
>> --
>> 2.1.4
>>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-iio" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux