]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - drivers/base/regmap/internal.h
regmap: Add "no-bus" option for regmap API
authorAndrey Smirnov <andrew.smirnov@gmail.com>
Sun, 27 Jan 2013 18:49:05 +0000 (10:49 -0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 29 Jan 2013 03:42:49 +0000 (11:42 +0800)
commitd2a5884a64161b524cc6749ee11b95d252e497f3
treecf94ee33306a752e68977324e9b990538b44f8ab
parent07c320dc31d757b8cb59c64dab320215c929bf02
regmap: Add "no-bus" option for regmap API

This commit adds provision for "no-bus" usage of the regmap API. In
this configuration user can provide API with two callbacks 'reg_read'
and 'reg_write' which are to be called when reads and writes to one of
device's registers is performed. This is useful for devices that
expose registers but whose register access sequence does not fit the 'bus'
abstraction.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/base/regmap/internal.h
drivers/base/regmap/regmap.c
include/linux/regmap.h