Lines Matching refs:n_consumers
108 unsigned int n_consumers = 0; in skl_int3472_fill_clk_pdata() local
113 n_consumers++; in skl_int3472_fill_clk_pdata()
115 if (!n_consumers) { in skl_int3472_fill_clk_pdata()
120 *clk_pdata = devm_kzalloc(dev, struct_size(*clk_pdata, consumers, n_consumers), in skl_int3472_fill_clk_pdata()
125 (*clk_pdata)->n_consumers = n_consumers; in skl_int3472_fill_clk_pdata()
140 return n_consumers; in skl_int3472_fill_clk_pdata()
150 int n_consumers; in skl_int3472_tps68470_probe() local
155 n_consumers = skl_int3472_fill_clk_pdata(&client->dev, &clk_pdata); in skl_int3472_tps68470_probe()
156 if (n_consumers < 0) in skl_int3472_tps68470_probe()
157 return n_consumers; in skl_int3472_tps68470_probe()
192 cells[0].pdata_size = struct_size(clk_pdata, consumers, n_consumers); in skl_int3472_tps68470_probe()