参照元

説明

引数

返り値

参考

実装

CONFIG_REGMAP 有効: drivers/base/regmap/regmap.c

/**
 * 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);
        if (!r)
                return NULL;
        return *r;
}
EXPORT_SYMBOL_GPL(dev_get_regmap);

CONFIG_REGMAP 無効: include/linux/regmap.h

static inline struct regmap *dev_get_regmap(struct device *dev,
                                            const char *name)
{
        return NULL;
}

コメント


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS