On Wed, Jan 11, 2017 at 08:59:28AM +0100, Maxime Coquelin wrote: > >+/* avoid write operation when necessary, to lessen cache issues */ > >+#define ASSIGN_UNLESS_EQUAL(var, val) do { \ > >+ if ((var) != (val)) \ > >+ (var) = (val); \ > >+} while (0) > As it is intended to go in -stable, I think this is fine to have it > only in the driver, but for v17.02, maybe we should have another patch on > top that declares it somewhere so that other libs and drivers can > make use of it?
Yes, if it has any other usages :) --yliu