Re: Regarding IIO dummy driver project

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

 



On Thu, Mar 5, 2015 at 5:28 PM, Somya Anand <somyaanand214@xxxxxxxxx> wrote:
> Hello Daniel,
>
> I have started reading about IIO drivers and I have a doubt in
> adis16220_read_16bit(...) function in the file iio/accel/adis16220_core.c.
>
> In this function what is the use of declaring 'val' as s16? and then
> typecasting it later for the function adis_read_reg_16().
>
> Instead, we can simply use u16 as data type for this. Is there any
> significance of using 's16' ?

Hi Somya,

I am not sure about this. It looks like we can directly use u16 for val.

Perhaps, someone from linux-iio could shed some light on this.

thanks,
Daniel.
--
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