ipack.c (4f2c0a4acffbec01079c28f839422e64ddeff004) | ipack.c (2a81ada32f0e584fc0c943e0d3a8c9f4fae411d6) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Industry-pack bus support functions. 4 * 5 * Copyright (C) 2011-2012 CERN (www.cern.ch) 6 * Author: Samuel Iglesias Gonsalvez <siglesias@igalia.com> 7 */ 8 --- 62 unchanged lines hidden (view full) --- 71{ 72 struct ipack_device *dev = to_ipack_dev(device); 73 struct ipack_driver *drv = to_ipack_driver(device->driver); 74 75 if (drv->ops->remove) 76 drv->ops->remove(dev); 77} 78 | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Industry-pack bus support functions. 4 * 5 * Copyright (C) 2011-2012 CERN (www.cern.ch) 6 * Author: Samuel Iglesias Gonsalvez <siglesias@igalia.com> 7 */ 8 --- 62 unchanged lines hidden (view full) --- 71{ 72 struct ipack_device *dev = to_ipack_dev(device); 73 struct ipack_driver *drv = to_ipack_driver(device->driver); 74 75 if (drv->ops->remove) 76 drv->ops->remove(dev); 77} 78 |
79static int ipack_uevent(struct device *dev, struct kobj_uevent_env *env) | 79static int ipack_uevent(const struct device *dev, struct kobj_uevent_env *env) |
80{ | 80{ |
81 struct ipack_device *idev; | 81 const struct ipack_device *idev; |
82 83 if (!dev) 84 return -ENODEV; 85 86 idev = to_ipack_dev(dev); 87 88 if (add_uevent_var(env, 89 "MODALIAS=ipack:f%02Xv%08Xd%08X", idev->id_format, --- 414 unchanged lines hidden --- | 82 83 if (!dev) 84 return -ENODEV; 85 86 idev = to_ipack_dev(dev); 87 88 if (add_uevent_var(env, 89 "MODALIAS=ipack:f%02Xv%08Xd%08X", idev->id_format, --- 414 unchanged lines hidden --- |