slave.c (fcb9d730be1d3010e0c8fdc5aaff62836d7a942c) | slave.c (0173f525b2c1b02a51784e2119d434593235aed1) |
---|---|
1// SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) 2// Copyright(c) 2015-17 Intel Corporation. 3 4#include <linux/acpi.h> 5#include <linux/of.h> 6#include <linux/soundwire/sdw.h> 7#include <linux/soundwire/sdw_type.h> 8#include "bus.h" | 1// SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) 2// Copyright(c) 2015-17 Intel Corporation. 3 4#include <linux/acpi.h> 5#include <linux/of.h> 6#include <linux/soundwire/sdw.h> 7#include <linux/soundwire/sdw_type.h> 8#include "bus.h" |
9#include "sysfs_local.h" |
|
9 10static void sdw_slave_release(struct device *dev) 11{ 12 struct sdw_slave *slave = dev_to_sdw_dev(dev); 13 14 kfree(slave); 15} 16 --- 29 unchanged lines hidden (view full) --- 46 dev_set_name(&slave->dev, "sdw:%x:%x:%x:%x:%x", 47 bus->link_id, id->mfg_id, id->part_id, 48 id->class_id, id->unique_id); 49 } 50 51 slave->dev.bus = &sdw_bus_type; 52 slave->dev.of_node = of_node_get(to_of_node(fwnode)); 53 slave->dev.type = &sdw_slave_type; | 10 11static void sdw_slave_release(struct device *dev) 12{ 13 struct sdw_slave *slave = dev_to_sdw_dev(dev); 14 15 kfree(slave); 16} 17 --- 29 unchanged lines hidden (view full) --- 47 dev_set_name(&slave->dev, "sdw:%x:%x:%x:%x:%x", 48 bus->link_id, id->mfg_id, id->part_id, 49 id->class_id, id->unique_id); 50 } 51 52 slave->dev.bus = &sdw_bus_type; 53 slave->dev.of_node = of_node_get(to_of_node(fwnode)); 54 slave->dev.type = &sdw_slave_type; |
55 slave->dev.groups = sdw_slave_status_attr_groups; |
|
54 slave->bus = bus; 55 slave->status = SDW_SLAVE_UNATTACHED; 56 init_completion(&slave->enumeration_complete); 57 init_completion(&slave->initialization_complete); 58 slave->dev_num = 0; 59 init_completion(&slave->probe_complete); 60 slave->probed = false; 61 slave->first_interrupt_done = false; --- 180 unchanged lines hidden --- | 56 slave->bus = bus; 57 slave->status = SDW_SLAVE_UNATTACHED; 58 init_completion(&slave->enumeration_complete); 59 init_completion(&slave->initialization_complete); 60 slave->dev_num = 0; 61 init_completion(&slave->probe_complete); 62 slave->probed = false; 63 slave->first_interrupt_done = false; --- 180 unchanged lines hidden --- |