eisa-bus.c (762f99f4f3cb41a775b5157dd761217beba65873) eisa-bus.c (2a81ada32f0e584fc0c943e0d3a8c9f4fae411d6)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * EISA bus support functions for sysfs.
4 *
5 * (C) 2002, 2003 Marc Zyngier <maz@wild-wind.fr.eu.org>
6 */
7
8#include <linux/kernel.h>

--- 113 unchanged lines hidden (view full) ---

122 }
123
124 eids++;
125 }
126
127 return 0;
128}
129
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * EISA bus support functions for sysfs.
4 *
5 * (C) 2002, 2003 Marc Zyngier <maz@wild-wind.fr.eu.org>
6 */
7
8#include <linux/kernel.h>

--- 113 unchanged lines hidden (view full) ---

122 }
123
124 eids++;
125 }
126
127 return 0;
128}
129
130static int eisa_bus_uevent(struct device *dev, struct kobj_uevent_env *env)
130static int eisa_bus_uevent(const struct device *dev, struct kobj_uevent_env *env)
131{
131{
132 struct eisa_device *edev = to_eisa_device(dev);
132 const struct eisa_device *edev = to_eisa_device(dev);
133
134 add_uevent_var(env, "MODALIAS=" EISA_DEVICE_MODALIAS_FMT, edev->id.sig);
135 return 0;
136}
137
138struct bus_type eisa_bus_type = {
139 .name = "eisa",
140 .match = eisa_bus_match,

--- 314 unchanged lines hidden ---
133
134 add_uevent_var(env, "MODALIAS=" EISA_DEVICE_MODALIAS_FMT, edev->id.sig);
135 return 0;
136}
137
138struct bus_type eisa_bus_type = {
139 .name = "eisa",
140 .match = eisa_bus_match,

--- 314 unchanged lines hidden ---