auxiliary.c (03ab8e6297acd1bc0eedaa050e2a1635c576fd11) auxiliary.c (2a81ada32f0e584fc0c943e0d3a8c9f4fae411d6)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (c) 2019-2020 Intel Corporation
4 *
5 * Please see Documentation/driver-api/auxiliary_bus.rst for more information.
6 */
7
8#define pr_fmt(fmt) "%s:%s: " fmt, KBUILD_MODNAME, __func__

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

180static int auxiliary_match(struct device *dev, struct device_driver *drv)
181{
182 struct auxiliary_device *auxdev = to_auxiliary_dev(dev);
183 struct auxiliary_driver *auxdrv = to_auxiliary_drv(drv);
184
185 return !!auxiliary_match_id(auxdrv->id_table, auxdev);
186}
187
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (c) 2019-2020 Intel Corporation
4 *
5 * Please see Documentation/driver-api/auxiliary_bus.rst for more information.
6 */
7
8#define pr_fmt(fmt) "%s:%s: " fmt, KBUILD_MODNAME, __func__

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

180static int auxiliary_match(struct device *dev, struct device_driver *drv)
181{
182 struct auxiliary_device *auxdev = to_auxiliary_dev(dev);
183 struct auxiliary_driver *auxdrv = to_auxiliary_drv(drv);
184
185 return !!auxiliary_match_id(auxdrv->id_table, auxdev);
186}
187
188static int auxiliary_uevent(struct device *dev, struct kobj_uevent_env *env)
188static int auxiliary_uevent(const struct device *dev, struct kobj_uevent_env *env)
189{
190 const char *name, *p;
191
192 name = dev_name(dev);
193 p = strrchr(name, '.');
194
195 return add_uevent_var(env, "MODALIAS=%s%.*s", AUXILIARY_MODULE_PREFIX,
196 (int)(p - name), name);

--- 223 unchanged lines hidden ---
189{
190 const char *name, *p;
191
192 name = dev_name(dev);
193 p = strrchr(name, '.');
194
195 return add_uevent_var(env, "MODALIAS=%s%.*s", AUXILIARY_MODULE_PREFIX,
196 (int)(p - name), name);

--- 223 unchanged lines hidden ---