Skip to content

Commit c639e85

Browse files
Codrin Ciubotariubroonie
authored andcommitted
ASoC: atmel: mchp-pdmc: print the correct property name
The correct property is 'microchip,mic-pos', not 'mchp,mic-pos', so replace all occurences of 'mchp,mic-pos' with 'microchip,mic-pos'. Fix a multi-line comment format while we are at it. Fixes: 5029165 ("ASoC: atmel: mchp-pdmc: add PDMC driver") Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com> Link: https://lore.kernel.org/r/20220318092609.130901-1-codrin.ciubotariu@microchip.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent d1129bb commit c639e85

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

sound/soc/atmel/mchp-pdmc.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -879,13 +879,13 @@ static int mchp_pdmc_dt_init(struct mchp_pdmc *dd)
879879

880880
dd->mic_no = of_property_count_u32_elems(np, "microchip,mic-pos");
881881
if (dd->mic_no < 0) {
882-
dev_err(dd->dev, "failed to get mchp,mic-pos: %d",
882+
dev_err(dd->dev, "failed to get microchip,mic-pos: %d",
883883
dd->mic_no);
884884
return dd->mic_no;
885885
}
886886
if (!dd->mic_no || dd->mic_no % 2 ||
887887
dd->mic_no / 2 > MCHP_PDMC_MAX_CHANNELS) {
888-
dev_err(dd->dev, "invalid array length for mchp,mic-pos: %d",
888+
dev_err(dd->dev, "invalid array length for microchip,mic-pos: %d",
889889
dd->mic_no);
890890
return -EINVAL;
891891
}
@@ -894,9 +894,10 @@ static int mchp_pdmc_dt_init(struct mchp_pdmc *dd)
894894

895895
dev_info(dd->dev, "%d PDM microphones declared\n", dd->mic_no);
896896

897-
/* by default, we consider the order of microphones in mchp,mic-pos to
898-
* be the same with the channel mapping; 1st microphone channel 0, 2nd
899-
* microphone channel 1, etc.
897+
/*
898+
* by default, we consider the order of microphones in
899+
* microchip,mic-pos to be the same with the channel mapping;
900+
* 1st microphone channel 0, 2nd microphone channel 1, etc.
900901
*/
901902
for (i = 0; i < dd->mic_no; i++) {
902903
int ds;

0 commit comments

Comments
 (0)