mips_cdmm.c (4f2c0a4acffbec01079c28f839422e64ddeff004) | mips_cdmm.c (2a81ada32f0e584fc0c943e0d3a8c9f4fae411d6) |
---|---|
1/* 2 * Bus driver for MIPS Common Device Memory Map (CDMM). 3 * 4 * Copyright (C) 2014-2015 Imagination Technologies Ltd. 5 * 6 * This file is subject to the terms and conditions of the GNU General Public 7 * License. See the file "COPYING" in the main directory of this archive 8 * for more details. --- 53 unchanged lines hidden (view full) --- 62static int mips_cdmm_match(struct device *dev, struct device_driver *drv) 63{ 64 struct mips_cdmm_device *cdev = to_mips_cdmm_device(dev); 65 struct mips_cdmm_driver *cdrv = to_mips_cdmm_driver(drv); 66 67 return mips_cdmm_lookup(cdrv->id_table, cdev) != NULL; 68} 69 | 1/* 2 * Bus driver for MIPS Common Device Memory Map (CDMM). 3 * 4 * Copyright (C) 2014-2015 Imagination Technologies Ltd. 5 * 6 * This file is subject to the terms and conditions of the GNU General Public 7 * License. See the file "COPYING" in the main directory of this archive 8 * for more details. --- 53 unchanged lines hidden (view full) --- 62static int mips_cdmm_match(struct device *dev, struct device_driver *drv) 63{ 64 struct mips_cdmm_device *cdev = to_mips_cdmm_device(dev); 65 struct mips_cdmm_driver *cdrv = to_mips_cdmm_driver(drv); 66 67 return mips_cdmm_lookup(cdrv->id_table, cdev) != NULL; 68} 69 |
70static int mips_cdmm_uevent(struct device *dev, struct kobj_uevent_env *env) | 70static int mips_cdmm_uevent(const struct device *dev, struct kobj_uevent_env *env) |
71{ | 71{ |
72 struct mips_cdmm_device *cdev = to_mips_cdmm_device(dev); | 72 const struct mips_cdmm_device *cdev = to_mips_cdmm_device(dev); |
73 int retval = 0; 74 75 retval = add_uevent_var(env, "CDMM_CPU=%u", cdev->cpu); 76 if (retval) 77 return retval; 78 79 retval = add_uevent_var(env, "CDMM_TYPE=0x%02x", cdev->type); 80 if (retval) --- 618 unchanged lines hidden --- | 73 int retval = 0; 74 75 retval = add_uevent_var(env, "CDMM_CPU=%u", cdev->cpu); 76 if (retval) 77 return retval; 78 79 retval = add_uevent_var(env, "CDMM_TYPE=0x%02x", cdev->type); 80 if (retval) --- 618 unchanged lines hidden --- |