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);