Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1734631

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

From jeffy <jeffy.chen@rock-chips.com>
Newsgroups linux.kernel
Subject Re: [PATCH v11 2/2] ASoC: rockchip: Use bus_type to distinguish rt5514 dsp from rt5514 codec
Date 2017-09-19 05:20 +0200
Message-ID <urheO-77g-17@gated-at.bofh.it> (permalink)
References <ur2fM-5C2-5@gated-at.bofh.it> <ur2fM-5C2-3@gated-at.bofh.it> <ur9Kh-21I-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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:
./arch/powerpc/platforms/pseries/ibmebus.c
./drivers/gpu/drm/drm_mipi_dsi.c
./drivers/hwtracing/coresight/of_coresight.c
./drivers/of/of_mdio.c
./drivers/of/platform.c
./drivers/i2c/i2c-core-of.c
./drivers/nvmem/core.c

and for class_find_device in:
./drivers/spi/spi.c
./drivers/fpga/fpga-mgr.c
./drivers/fpga/fpga-region.c
./drivers/fpga/fpga-bridge.c
./drivers/regulator/core.c
./drivers/mux/core.c
./drivers/net/phy/mdio_bus.c

and for component_match_add in:
./drivers/iommu/mtk_iommu.c
  (and a lot of drm drivers)

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH v11 2/2] ASoC: rockchip: Use bus_type to distinguish rt5514 dsp from rt5514 codec Jeffy Chen <jeffy.chen@rock-chips.com> - 2017-09-18 13:20 +0200
  Re: [PATCH v11 2/2] ASoC: rockchip: Use bus_type to distinguish  rt5514 dsp from rt5514 codec Matthias Kaehlcke <mka@chromium.org> - 2017-09-18 21:20 +0200
    Re: [PATCH v11 2/2] ASoC: rockchip: Use bus_type to distinguish rt5514  dsp from rt5514 codec jeffy <jeffy.chen@rock-chips.com> - 2017-09-19 05:20 +0200

csiph-web