*参照元 [#vdadd553] #backlinks *説明 [#g511d1f3] -パス: 複数あり --CONFIG_REGMAP 有効: [[linux-4.4.1/drivers/base/regmap/regmap.c]] --CONFIG_REGMAP 無効: [[linux-4.4.1/include/linux/regmap.h]] --[[linux-4.4.1/CONFIG_REGMAP]] -FIXME: これは何? --説明 **引数 [#x08c8386] -struct device *dev -- --[[linux-4.4.1/device]] -const char *name -- **返り値 [#o9d1fd6f] -struct regmap * -- --[[linux-4.4.1/regmap]] **参考 [#f787100b] *実装 [#f6e78c11] **CONFIG_REGMAP 有効: drivers/base/regmap/regmap.c [#m5b5bda8] /** * dev_get_regmap(): Obtain the regmap (if any) for a device * * @dev: Device to retrieve the map for * @name: Optional name for the register map, usually NULL. * * Returns the regmap for the device if one is present, or NULL. If * name is specified then it must match the name specified when * registering the device, if it is NULL then the first regmap found * will be used. Devices with multiple register maps are very rare, * generic code should normally not need to specify a name. */ struct regmap *dev_get_regmap(struct device *dev, const char *name) { struct regmap **r = devres_find(dev, dev_get_regmap_release, dev_get_regmap_match, (void *)name); - --[[linux-4.4.1/devres_find()]] --[[linux-4.4.1/dev_get_regmap_release()]] --[[linux-4.4.1/dev_get_regmap_match()]] if (!r) return NULL; return *r; } EXPORT_SYMBOL_GPL(dev_get_regmap); - --[[linux-4.4.1/EXPORT_SYMBOL_GPL()]] **CONFIG_REGMAP 無効: include/linux/regmap.h [#ife3ccea] static inline struct regmap *dev_get_regmap(struct device *dev, const char *name) { return NULL; } *コメント [#x5808fb9]