Home
last modified time | relevance | path

Searched refs:of_id (Results 1 – 25 of 125) sorted by relevance

12345

/drivers/media/platform/exynos4-is/
Dfimc-is-sensor.c27 const struct of_device_id *of_id; in fimc_is_sensor_get_drvdata() local
29 of_id = of_match_node(fimc_is_sensor_of_ids, node); in fimc_is_sensor_get_drvdata()
30 return of_id ? of_id->data : NULL; in fimc_is_sensor_get_drvdata()
/drivers/mfd/
Dwm831x-i2c.c28 const struct of_device_id *of_id; in wm831x_i2c_probe() local
34 of_id = of_match_device(wm831x_of_match, &i2c->dev); in wm831x_i2c_probe()
35 if (!of_id) { in wm831x_i2c_probe()
39 type = (enum wm831x_parent)of_id->data; in wm831x_i2c_probe()
Dwm831x-spi.c25 const struct of_device_id *of_id; in wm831x_spi_probe() local
31 of_id = of_match_device(wm831x_of_match, &spi->dev); in wm831x_spi_probe()
32 if (!of_id) { in wm831x_spi_probe()
36 type = (enum wm831x_parent)of_id->data; in wm831x_spi_probe()
Dlp87565.c50 const struct of_device_id *of_id; in lp87565_probe() local
94 of_id = of_match_device(of_lp87565_match_table, &client->dev); in lp87565_probe()
95 if (of_id) in lp87565_probe()
96 lp87565->dev_type = (enum lp87565_device_type)of_id->data; in lp87565_probe()
Dstmpe-i2c.c73 const struct of_device_id *of_id; in stmpe_i2c_probe() local
80 of_id = of_match_device(stmpe_of_match, &i2c->dev); in stmpe_i2c_probe()
81 if (!of_id) { in stmpe_i2c_probe()
89 partnum = (enum stmpe_partnum)of_id->data; in stmpe_i2c_probe()
Dsun4i-gpadc.c98 const struct of_device_id *of_id; in sun4i_gpadc_probe() local
103 of_id = of_match_node(sun4i_gpadc_of_match, pdev->dev.of_node); in sun4i_gpadc_probe()
104 if (!of_id) in sun4i_gpadc_probe()
107 switch ((long)of_id->data) { in sun4i_gpadc_probe()
Dmxs-lradc.c128 const struct of_device_id *of_id; in mxs_lradc_probe() local
141 of_id = of_match_device(mxs_lradc_dt_ids, &pdev->dev); in mxs_lradc_probe()
142 if (!of_id) in mxs_lradc_probe()
145 lradc->soc = (enum mxs_lradc_id)of_id->data; in mxs_lradc_probe()
Drn5t618.c183 const struct of_device_id *of_id; in rn5t618_i2c_probe() local
187 of_id = of_match_device(rn5t618_of_match, &i2c->dev); in rn5t618_i2c_probe()
188 if (!of_id) { in rn5t618_i2c_probe()
198 priv->variant = (long)of_id->data; in rn5t618_i2c_probe()
Dtwl6030-irq.c371 const struct of_device_id *of_id; in twl6030_init_irq() local
373 of_id = of_match_device(twl6030_of_match, dev); in twl6030_init_irq()
374 if (!of_id || !of_id->data) { in twl6030_init_irq()
412 twl6030_irq->irq_mapping_tbl = of_id->data; in twl6030_init_irq()
/drivers/power/reset/
Dbrcmstb-reboot.c106 const struct of_device_id *of_id; in brcmstb_reboot_probe() local
108 of_id = of_match_node(of_match, np); in brcmstb_reboot_probe()
109 if (!of_id) { in brcmstb_reboot_probe()
113 reset_masks = of_id->data; in brcmstb_reboot_probe()
/drivers/mtd/parsers/
Dofpart_core.c46 const struct of_device_id *of_id; in parse_fixed_partitions() local
77 of_id = of_match_node(parse_ofpart_match_table, ofpart_node); in parse_fixed_partitions()
78 if (dedicated && !of_id) { in parse_fixed_partitions()
83 quirks = of_id ? of_id->data : NULL; in parse_fixed_partitions()
/drivers/rtc/
Dclass.c250 int of_id = -1, id = -1; in rtc_device_get_id() local
253 of_id = of_alias_get_id(dev->of_node, "rtc"); in rtc_device_get_id()
255 of_id = of_alias_get_id(dev->parent->of_node, "rtc"); in rtc_device_get_id()
257 if (of_id >= 0) { in rtc_device_get_id()
258 id = ida_simple_get(&rtc_ida, of_id, of_id + 1, GFP_KERNEL); in rtc_device_get_id()
260 dev_warn(dev, "/aliases ID %d not available\n", of_id); in rtc_device_get_id()
/drivers/ufs/host/
Dtc-dwc-g210-pltfrm.c57 const struct of_device_id *of_id; in tc_dwc_g210_pltfm_probe() local
61 of_id = of_match_node(tc_dwc_g210_pltfm_match, dev->of_node); in tc_dwc_g210_pltfm_probe()
62 vops = (struct ufs_hba_variant_ops *)of_id->data; in tc_dwc_g210_pltfm_probe()
Dufs-sprd.c137 const struct of_device_id *of_id; in ufs_sprd_common_init() local
144 of_id = of_match_node(ufs_sprd_of_match, pdev->dev.of_node); in ufs_sprd_common_init()
145 if (of_id->data != NULL) in ufs_sprd_common_init()
146 host->priv = container_of(of_id->data, struct ufs_sprd_priv, in ufs_sprd_common_init()
418 const struct of_device_id *of_id; in ufs_sprd_probe() local
420 of_id = of_match_node(ufs_sprd_of_match, dev->of_node); in ufs_sprd_probe()
421 err = ufshcd_pltfrm_init(pdev, of_id->data); in ufs_sprd_probe()
/drivers/usb/phy/
Dphy-am335x-control.c153 const struct of_device_id *of_id; in am335x_control_usb_probe() local
156 of_id = of_match_node(omap_control_usb_id_table, pdev->dev.of_node); in am335x_control_usb_probe()
157 if (!of_id) in am335x_control_usb_probe()
160 phy_ctrl = of_id->data; in am335x_control_usb_probe()
/drivers/fpga/
Daltera-hps2fpga.c130 const struct of_device_id *of_id; in alt_fpga_bridge_probe() local
135 of_id = of_match_device(altera_fpga_of_match, dev); in alt_fpga_bridge_probe()
136 if (!of_id) { in alt_fpga_bridge_probe()
141 priv = (struct altera_hps2fpga_data *)of_id->data; in alt_fpga_bridge_probe()
/drivers/phy/broadcom/
Dphy-bcm-ns-usb3.c192 const struct of_device_id *of_id; in bcm_ns_usb3_mdio_probe() local
206 of_id = of_match_device(bcm_ns_usb3_id_table, dev); in bcm_ns_usb3_mdio_probe()
207 if (!of_id) in bcm_ns_usb3_mdio_probe()
209 usb3->family = (enum bcm_ns_family)of_id->data; in bcm_ns_usb3_mdio_probe()
/drivers/net/ethernet/ti/
Dcpsw-phy-sel.c209 const struct of_device_id *of_id; in cpsw_phy_sel_probe() local
212 of_id = of_match_node(cpsw_phy_sel_id_table, pdev->dev.of_node); in cpsw_phy_sel_probe()
213 if (!of_id) in cpsw_phy_sel_probe()
223 priv->cpsw_phy_sel = of_id->data; in cpsw_phy_sel_probe()
/drivers/iio/chemical/
Datlas-ezo-sensor.c207 const struct of_device_id *of_id; in atlas_ezo_probe() local
214 of_id = of_match_device(atlas_ezo_dt_ids, &client->dev); in atlas_ezo_probe()
215 if (!of_id) in atlas_ezo_probe()
218 chip = &atlas_ezo_devices[(unsigned long)of_id->data]; in atlas_ezo_probe()
/drivers/gpu/drm/mediatek/
Dmtk_drm_drv.c505 const struct of_device_id *of_id; in mtk_drm_probe() local
522 of_id = of_match_node(mtk_drm_of_ids, phandle); in mtk_drm_probe()
523 if (!of_id) in mtk_drm_probe()
526 private->data = of_id->data; in mtk_drm_probe()
530 const struct of_device_id *of_id; in mtk_drm_probe() local
534 of_id = of_match_node(mtk_ddp_comp_dt_ids, node); in mtk_drm_probe()
535 if (!of_id) in mtk_drm_probe()
544 comp_type = (enum mtk_ddp_comp_type)of_id->data; in mtk_drm_probe()
/drivers/nvmem/
Dnintendo-otp.c77 const struct of_device_id *of_id = in nintendo_otp_probe() local
100 if (of_id->data) { in nintendo_otp_probe()
101 const struct nintendo_otp_devtype_data *data = of_id->data; in nintendo_otp_probe()
/drivers/regulator/
Dlochnagar-regulator.c246 const struct of_device_id *of_id; in lochnagar_regulator_probe() local
255 of_id = of_match_device(lochnagar_of_match, dev); in lochnagar_regulator_probe()
256 if (!of_id) in lochnagar_regulator_probe()
259 desc = of_id->data; in lochnagar_regulator_probe()
/drivers/net/can/sja1000/
Dsja1000_platform.c214 const struct of_device_id *of_id; in sp_probe() local
245 of_id = of_match_device(sp_of_table, &pdev->dev); in sp_probe()
246 if (of_id && of_id->data) { in sp_probe()
247 of_data = of_id->data; in sp_probe()
/drivers/ata/
Dahci_qoriq.c269 const struct of_device_id *of_id; in ahci_qoriq_probe() local
277 of_id = of_match_node(ahci_qoriq_of_match, np); in ahci_qoriq_probe()
279 if (!(of_id || acpi_id)) in ahci_qoriq_probe()
286 if (of_id) in ahci_qoriq_probe()
287 qoriq_priv->type = (enum ahci_qoriq_type)of_id->data; in ahci_qoriq_probe()
/drivers/phy/ti/
Dphy-omap-control.c271 const struct of_device_id *of_id; in omap_control_phy_probe() local
274 of_id = of_match_device(omap_control_phy_id_table, &pdev->dev); in omap_control_phy_probe()
275 if (!of_id) in omap_control_phy_probe()
284 control_phy->type = *(enum omap_control_phy_type *)of_id->data; in omap_control_phy_probe()

12345