Lines Matching refs:drv_data
150 struct max77686_clk_driver_data *drv_data = data; in of_clk_max77686_get() local
153 if (idx >= drv_data->num_clks) { in of_clk_max77686_get()
158 return &drv_data->max_clk_data[idx].hw; in of_clk_max77686_get()
166 struct max77686_clk_driver_data *drv_data; in max77686_clk_probe() local
171 drv_data = devm_kzalloc(dev, sizeof(*drv_data), GFP_KERNEL); in max77686_clk_probe()
172 if (!drv_data) in max77686_clk_probe()
181 drv_data->chip = id->driver_data; in max77686_clk_probe()
183 switch (drv_data->chip) { in max77686_clk_probe()
204 drv_data->num_clks = num_clks; in max77686_clk_probe()
205 drv_data->max_clk_data = devm_kcalloc(dev, num_clks, in max77686_clk_probe()
206 sizeof(*drv_data->max_clk_data), in max77686_clk_probe()
208 if (!drv_data->max_clk_data) in max77686_clk_probe()
215 max_clk_data = &drv_data->max_clk_data[i]; in max77686_clk_probe()
249 drv_data); in max77686_clk_probe()
259 if (drv_data->chip == CHIP_MAX77802) { in max77686_clk_probe()