linux-4.4.1/snd_soc_component_update_bits()
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
*参照元 [#w16ed1f4]
#backlinks
*説明 [#h51b232b]
-パス: [[linux-4.4.1/sound/soc/soc-io.c]]
-FIXME: これは何?
--説明
**引数 [#p68bbbe3]
-struct snd_soc_component *component
--
--[[linux-4.4.1/snd_soc_component]]
-unsigned int reg
--
-unsigned int mask
--
-unsigned int val
--
**返り値 [#o019f69e]
-int
--
**参考 [#xc69fcd8]
*実装 [#j8da2175]
/**
* snd_soc_component_update_bits() - Perform read/modify...
* @component: Component to update
* @reg: Register to update
* @mask: Mask that specifies which bits to update
* @val: New value for the bits specified by mask
*
* Return: 1 if the operation was successful and the val...
* changed, 0 if the operation was successful, but the v...
* Returns a negative error code otherwise.
*/
int snd_soc_component_update_bits(struct snd_soc_compone...
unsigned int reg, unsigned int mask, unsigned in...
{
bool change;
int ret;
if (component->regmap)
ret = regmap_update_bits_check(component...
val, &change);
else
ret = snd_soc_component_update_bits_lega...
mask, val, &change);
-
--[[linux-4.4.1/regmap_update_bits_check()]]
--[[linux-4.4.1/snd_soc_component_update_bits_legacy()]]
if (ret < 0)
return ret;
return change;
}
EXPORT_SYMBOL_GPL(snd_soc_component_update_bits);
-
--[[linux-4.4.1/EXPORT_SYMBOL_GPL()]]
*コメント [#vc391426]
終了行:
*参照元 [#w16ed1f4]
#backlinks
*説明 [#h51b232b]
-パス: [[linux-4.4.1/sound/soc/soc-io.c]]
-FIXME: これは何?
--説明
**引数 [#p68bbbe3]
-struct snd_soc_component *component
--
--[[linux-4.4.1/snd_soc_component]]
-unsigned int reg
--
-unsigned int mask
--
-unsigned int val
--
**返り値 [#o019f69e]
-int
--
**参考 [#xc69fcd8]
*実装 [#j8da2175]
/**
* snd_soc_component_update_bits() - Perform read/modify...
* @component: Component to update
* @reg: Register to update
* @mask: Mask that specifies which bits to update
* @val: New value for the bits specified by mask
*
* Return: 1 if the operation was successful and the val...
* changed, 0 if the operation was successful, but the v...
* Returns a negative error code otherwise.
*/
int snd_soc_component_update_bits(struct snd_soc_compone...
unsigned int reg, unsigned int mask, unsigned in...
{
bool change;
int ret;
if (component->regmap)
ret = regmap_update_bits_check(component...
val, &change);
else
ret = snd_soc_component_update_bits_lega...
mask, val, &change);
-
--[[linux-4.4.1/regmap_update_bits_check()]]
--[[linux-4.4.1/snd_soc_component_update_bits_legacy()]]
if (ret < 0)
return ret;
return change;
}
EXPORT_SYMBOL_GPL(snd_soc_component_update_bits);
-
--[[linux-4.4.1/EXPORT_SYMBOL_GPL()]]
*コメント [#vc391426]
ページ名: