[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160301203015.GC1488@katana>
Date: Tue, 1 Mar 2016 21:30:23 +0100
From: Wolfram Sang <wsa@...-dreams.de>
To: Daniel Baluta <daniel.baluta@...el.com>
Cc: jic23@...nel.org, knaack.h@....de, lars@...afoo.de,
pmeerw@...erw.net, linux-iio@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-i2c@...r.kernel.org,
lucas.demarchi@...el.com, srinivas.pandruvada@...ux.intel.com,
ggao@...ensense.com, adi.reus@...il.com, cmo@...exis.com,
mwelling@...e.org
Subject: Re: [RFC PATCH 8/9] i2c: i2c-mux: Allow for NULL select callback
On Thu, Feb 18, 2016 at 05:53:13PM +0200, Daniel Baluta wrote:
> From: Adriana Reus <adriana.reus@...el.com>
>
> Add a check in i2c_mux_master_xfer before calling the select callback.
> This is necessary so that NULL callbacks can be safely registered.
>
> Signed-off-by: Adriana Reus <adriana.reus@...el.com>
> Signed-off-by: Daniel Baluta <daniel.baluta@...el.com>
Hmm, rather than supporting that in the core, I'd prefer to have the
driver pass an empty function instead. Then, in the driver, we can have
a comment explaining the special situation.
Download attachment "signature.asc" of type "application/pgp-signature" (820 bytes)
Powered by blists - more mailing lists