[PATCH v11 2/2] ASoC: rockchip: Use bus_type to distinguish rt5514 dsp from rt5514 codec

jeffy jeffy.chen at rock-chips.com
Mon Sep 18 20:16:32 PDT 2017

Hi Matthias,

On 09/19/2017 03:15 AM, Matthias Kaehlcke wrote:
>> >+static int of_dev_node_match(struct device *dev, void *data)
>> >+{
>> >+	return dev->of_node == data;
>> >+}
> The same is done in different places, even with the same function name
> (drivers/i2c/i2c-core-of.c, drivers/mux/mux-core.c, ...), which
> suggests that we might want to have this function in <linux/of.h>

right, we are dupping this for bus_find_device in:

and for class_find_device in:

and for component_match_add in:
  (and a lot of drm drivers)

More information about the Linux-rockchip mailing list