On 09/09/2022 09:58, Michael Walle wrote:
Am 2022-09-09 10:52, schrieb Srinivas Kandagatla:
On 01/09/2022 23:18, Michael Walle wrote:
It doesn't make any more sense to have a opaque pointer set up by theThis is really not a good idea to remove the context pointer, as this
nvmem device. Usually, the layout isn't associated with a particular
nvmem device.
is the only way for callback to get context which it can make use of.
In which case? As I mentioned it's the priv to the nvmem driver and all
the "normal" callbacks can do very little with it. If there will be a
future need, then there should be a proper opaque pointer associated
with the layout and not the nvmem driver.
Yes, the opaque object here is the layout priv which I agree with, but
removing the context totally from the callback is not a good idea.
We should have some context to callbacks to be able to allow them to
deal with some private info.