[PATCH 0/2] i2c: move adapter locking ops to struct, constify
From: Peter Rosin
Date: Fri Jul 29 2016 - 14:58:59 EST
This allows the locking ops to be moved to .rodata, which is generally
desireable. It also feels good to change all ops with one assignment.
Cheers,
Peter
Peter Rosin (2):
i2c: add i2c_trylock_bus wrapper, use it
i2c: move locking operations to their own struct
drivers/i2c/i2c-core.c | 15 +++++++++------
drivers/i2c/i2c-mux.c | 29 ++++++++++++++++++-----------
include/linux/i2c.h | 37 +++++++++++++++++++++++++++++++------
3 files changed, 58 insertions(+), 23 deletions(-)
--
2.1.4