[PATCH v5 06/12] mfd: wm97xx-core: core support for wm97xx Codec
From: robert.jarzmik@free.fr (Robert Jarzmik)
Date: 2017-08-11 19:08:37
Also in:
alsa-devel, linux-input, lkml
From: robert.jarzmik@free.fr (Robert Jarzmik)
Date: 2017-08-11 19:08:37
Also in:
alsa-devel, linux-input, lkml
Lee Jones [off-list ref] writes:
On Sun, 06 Aug 2017, Robert Jarzmik wrote:
Hi Lee, I basically agree with all your comments, so I will only answer to your questions.
quoted
+#include <linux/module.h>Why separate this?
No point, for v6.
quoted
+ * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details.Can you use the short version?
Yeah, sure.
quoted
+#ifndef __LINUX_MFD_WM97XX_H +#define __LINUX_MFD_WM97XX_H + +struct regmap; +struct wm97xx_batt_pdata; +struct snd_ac97;What are you using these for?
There are for the structure just below, which doesn't need the implementation details of these structures, but does need the definition to properly compile.
quoted
+struct wm97xx_platform_data { + struct snd_ac97 *ac97; + struct regmap *regmap; + struct wm97xx_batt_pdata *batt_pdata; +};
This is the structure "just below" I'm speaking of. Thanks for the review. -- Robert