Home
last modified time | relevance | path

Searched refs:attached_device (Results 1 – 3 of 3) sorted by relevance

/linux-6.1.9/drivers/mfd/
Dmcp-core.c20 #define to_mcp(d) container_of(d, struct mcp, attached_device)
165 struct mcp *mcp = container_of(dev, struct mcp, attached_device); in mcp_release()
177 device_initialize(&mcp->attached_device); in mcp_host_alloc()
178 mcp->attached_device.parent = parent; in mcp_host_alloc()
179 mcp->attached_device.bus = &mcp_bus_type; in mcp_host_alloc()
180 mcp->attached_device.dma_mask = parent->dma_mask; in mcp_host_alloc()
181 mcp->attached_device.release = mcp_release; in mcp_host_alloc()
189 mcp->attached_device.platform_data = pdata; in mcp_host_add()
190 dev_set_name(&mcp->attached_device, "mcp0"); in mcp_host_add()
191 return device_add(&mcp->attached_device); in mcp_host_add()
[all …]
Ducb1x00-core.c365 struct ucb1x00_plat_data *pdata = ucb->mcp->attached_device.platform_data; in ucb1x00_irq_set_wake()
494 struct ucb1x00_plat_data *pdata = mcp->attached_device.platform_data; in ucb1x00_probe()
520 ucb->dev.parent = &mcp->attached_device; in ucb1x00_probe()
613 struct ucb1x00_plat_data *pdata = mcp->attached_device.platform_data; in ucb1x00_remove()
/linux-6.1.9/include/linux/mfd/
Dmcp.h21 struct device attached_device; member
55 #define mcp_get_drvdata(mcp) dev_get_drvdata(&(mcp)->attached_device)
56 #define mcp_set_drvdata(mcp,d) dev_set_drvdata(&(mcp)->attached_device, d)