dd->mic_no = of_property_count_u32_elems(np, "microchip,mic-pos");
if (dd->mic_no < 0) {
- dev_err(dd->dev, "failed to get mchp,mic-pos: %d",
+ dev_err(dd->dev, "failed to get microchip,mic-pos: %d",
dd->mic_no);
return dd->mic_no;
}
if (!dd->mic_no || dd->mic_no % 2 ||
dd->mic_no / 2 > MCHP_PDMC_MAX_CHANNELS) {
- dev_err(dd->dev, "invalid array length for mchp,mic-pos: %d",
+ dev_err(dd->dev, "invalid array length for microchip,mic-pos: %d",
dd->mic_no);
return -EINVAL;
}
dev_info(dd->dev, "%d PDM microphones declared\n", dd->mic_no);
- /* by default, we consider the order of microphones in mchp,mic-pos to
- * be the same with the channel mapping; 1st microphone channel 0, 2nd
- * microphone channel 1, etc.
+ /*
+ * by default, we consider the order of microphones in
+ * microchip,mic-pos to be the same with the channel mapping;
+ * 1st microphone channel 0, 2nd microphone channel 1, etc.
*/
for (i = 0; i < dd->mic_no; i++) {
int ds;