Re: [PATCH 1/6] soundwire: qcom: add support to missing transport params

From: Srinivas Kandagatla
Date: Mon Feb 01 2021 - 10:51:40 EST




On 01/02/2021 14:13, Vinod Koul wrote:
+
+ ret = of_property_read_u8_array(np, "qcom,ports-hstop", hstop, nports);
+ if (ret)
+ memset(hstop, SWR_INVALID_PARAM, QCOM_SDW_MAX_PORTS);
why not memset the whole area here and then populate it..?

That is other way to do it!, I can do that in next spin!


--srini
+
+ ret = of_property_read_u8_array(np, "qcom,ports-word-length",
+ word_length, nports);