lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Fri, 03 Oct 2014 18:08:22 +0300 From: "Ivan T. Ivanov" <iivanov@...sol.com> To: Srinivas Pandruvada <srinivas.pandruvada@...ux.intel.com> Cc: Lars-Peter Clausen <lars@...afoo.de>, Jonathan Cameron <jic23@...nel.org>, Sachin Kamat <sachin.kamat@...aro.org>, John Stultz <john.stultz@...aro.org>, linux-iio@...r.kernel.org, svarbanov@...sol.com, linux-kernel@...r.kernel.org, linux-arm-msm@...r.kernel.org Subject: Re: [PATCH] iio: inkern: Add of_xlate function to struct iio_dev On Fri, 2014-10-03 at 07:31 -0700, Srinivas Pandruvada wrote: > On Thu, 2014-10-02 at 16:49 +0300, Ivan T. Ivanov wrote: > > On Thu, 2014-10-02 at 15:30 +0200, Lars-Peter Clausen wrote: > > > On 10/02/2014 02:32 PM, Ivan T. Ivanov wrote: > > > > When #iio-cells is greater than '0', the driver could provide > > > > a custom of_xlate function that reads the *args* and returns > > > > the appropriate index in registered IIO channels array. > > > > > > Do you have an example of a device that doesn't want to use the default > > > mapping? If yes please include it in the commit message, otherwise it is > > > fairly hard to say whether this makes sense or not. > > > > Still not mainlined. You can find more detailed description of the > > issue here[1] and driver here[2]. > I see your need. I wonder this mapping be done in individual client > driver instead of creating another callback. I am not sure I got you question. The idea is to provide default 1:1 mapping in core, which can be overwritten by client callback. Regards, Ivan -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists