Message ID | 20250528-asoc-const-unused-v1-0-19a5d07b9d5c@linaro.org |
---|---|
Headers | show |
Series | ASoC: codecs: More const and unused member cleanups | expand |
On 29/05/2025 11:33, Srinivas Kandagatla wrote: > > > On 5/28/25 8:59 PM, Krzysztof Kozlowski wrote: >> Make static data const for code safety and drop some unused fields in >> structs. >> >> This is based on for-v6.16 branch in ASoC tree for context in wcd938x >> driver. >> >> Best regards, >> Krzysztof >> >> --- >> Krzysztof Kozlowski (8): >> ASoC: codecs: Constify regmap configuration static variables >> ASoC: fsl: Constify reg_default array >> ASoC: codecs: wcd9335: Drop unused sido_input_src field >> ASoC: codecs: wcd934x: Drop unused num_rx_port/num_tx_port fields >> ASoC: codecs: wcd937x: Drop unused 'struct wcd937x_priv' fields >> ASoC: codecs: wcd938x: Drop unused 'struct wcd938x_priv' fields >> ASoC: codecs: wcd938x: Drop unused variant field >> ASoC: codecs: wcd939x: Drop unused 'struct wcd939x_priv' fields > > > Thanks Krzysztof for the cleanups, its surprising to see so many unused > stuct members in qcom codecs. Did you use any static analysis tool to do > this or was this manually done? No, only the tool between seat and keyboard. I should find something better (more automated), because every 3 months I discover a new unused field. :) I think now I cleaned them for good, but some new cases are added when some code is dropped or simplified. Best regards, Krzysztof