diff mbox series

[v4,3/3] mfd: Add Rockchip rk817 audio CODEC support

Message ID SN6PR06MB5342682A0FDE5D84738EE760A56A9@SN6PR06MB5342.namprd06.prod.outlook.com (mailing list archive)
State Superseded, archived
Headers show
Series [v4,1/3] ASoC: Add Rockchip rk817 audio CODEC support | expand

Commit Message

Chris Morgan March 17, 2021, 8:21 p.m. UTC
Add rk817 codec support cell to rk808 mfd driver.

Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
---
 drivers/mfd/rk808.c | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Mark Brown March 17, 2021, 8:59 p.m. UTC | #1
On Wed, Mar 17, 2021 at 03:21:17PM -0500, Chris Morgan wrote:

> +#ifdef CONFIG_SND_SOC_RK817
> +	{
> +		.name = "rk817-codec",
> +		.of_compatible = "rockchip,rk817-codec",
> +	},
> +#endif

The of_compatible should be redundant here.  I'm not sure if the config
guard is really useful?
diff mbox series

Patch

diff --git a/drivers/mfd/rk808.c b/drivers/mfd/rk808.c
index ad923dd4e007..adb8a7da29db 100644
--- a/drivers/mfd/rk808.c
+++ b/drivers/mfd/rk808.c
@@ -163,6 +163,12 @@  static const struct mfd_cell rk817s[] = {
 		.num_resources = ARRAY_SIZE(rk817_rtc_resources),
 		.resources = &rk817_rtc_resources[0],
 	},
+#ifdef CONFIG_SND_SOC_RK817
+	{
+		.name = "rk817-codec",
+		.of_compatible = "rockchip,rk817-codec",
+	},
+#endif
 };
 
 static const struct mfd_cell rk818s[] = {