*参照元 [#e96844e6] #backlinks *説明 [#g295b37e] -パス: [[linux-4.4.1/drivers/base/regmap/regmap.c]] -パス: 複数あり --CONFIG_REGMAP 有効: [[linux-4.4.1/drivers/base/regmap/regmap.c]] --CONFIG_REGMAP 無効: [[linux-4.4.1/include/linux/regmap.h]] -FIXME: これは何? --説明 **引数 [#d87fab89] -struct regmap *map -- --[[linux-4.4.1/regmap]] -unsigned int reg -- -unsigned int val -- **返り値 [#m7be501d] -int -- **参考 [#fcb5d911] *実装 [#y99061ec] **CONFIG_REGMAP 有効: drivers/base/regmap/regmap.c [#x9f46197] /** * regmap_write(): Write a value to a single register * * @map: Register map to write to * @reg: Register to write to * @val: Value to be written * * A value of zero will be returned on success, a negative errno will * be returned in error cases. */ int regmap_write(struct regmap *map, unsigned int reg, unsigned int val) { int ret; if (reg % map->reg_stride) return -EINVAL; map->lock(map->lock_arg); ret = _regmap_write(map, reg, val); - --[[linux-4.4.1/_regmap_write()]] map->unlock(map->lock_arg); return ret; } EXPORT_SYMBOL_GPL(regmap_write); - --[[linux-4.4.1/EXPORT_SYMBOL_GPL()]] **CONFIG_REGMAP 無効: include/linux/regmap.h [#v69c48b8] static inline int regmap_write(struct regmap *map, unsigned int reg, unsigned int val) { WARN_ONCE(1, "regmap API is disabled"); - --[[linux-4.4.1/WARN_ONCE()]] return -EINVAL; } *コメント [#k7649dae]