ad7418.c (186833) | ad7418.c (246128) |
---|---|
1/*- 2 * Copyright (c) 2006 Sam Leffler. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 9 unchanged lines hidden (view full) --- 18 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 19 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 20 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 */ 24 25#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2006 Sam Leffler. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 9 unchanged lines hidden (view full) --- 18 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 19 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 20 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 */ 24 25#include <sys/cdefs.h> |
26__FBSDID("$FreeBSD: head/sys/dev/iicbus/ad7418.c 186833 2009-01-06 17:23:37Z nwhitehorn $"); | 26__FBSDID("$FreeBSD: head/sys/dev/iicbus/ad7418.c 246128 2013-01-30 18:01:20Z sbz $"); |
27/* 28 * Analog Devices AD7418 chip sitting on the I2C bus. 29 */ 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/kernel.h> 33#include <sys/lock.h> 34#include <sys/module.h> --- 179 unchanged lines hidden (view full) --- 214 sc->sc_lastupdate = ticks; 215 } 216} 217 218static device_method_t ad7418_methods[] = { 219 DEVMETHOD(device_probe, ad7418_probe), 220 DEVMETHOD(device_attach, ad7418_attach), 221 | 27/* 28 * Analog Devices AD7418 chip sitting on the I2C bus. 29 */ 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/kernel.h> 33#include <sys/lock.h> 34#include <sys/module.h> --- 179 unchanged lines hidden (view full) --- 214 sc->sc_lastupdate = ticks; 215 } 216} 217 218static device_method_t ad7418_methods[] = { 219 DEVMETHOD(device_probe, ad7418_probe), 220 DEVMETHOD(device_attach, ad7418_attach), 221 |
222 {0, 0}, | 222 DEVMETHOD_END |
223}; 224 225static driver_t ad7418_driver = { 226 "ad7418", 227 ad7418_methods, 228 sizeof(struct ad7418_softc), 229}; 230static devclass_t ad7418_devclass; 231 232DRIVER_MODULE(ad7418, iicbus, ad7418_driver, ad7418_devclass, 0, 0); 233MODULE_VERSION(ad7418, 1); 234MODULE_DEPEND(ad7418, iicbus, 1, 1, 1); | 223}; 224 225static driver_t ad7418_driver = { 226 "ad7418", 227 ad7418_methods, 228 sizeof(struct ad7418_softc), 229}; 230static devclass_t ad7418_devclass; 231 232DRIVER_MODULE(ad7418, iicbus, ad7418_driver, ad7418_devclass, 0, 0); 233MODULE_VERSION(ad7418, 1); 234MODULE_DEPEND(ad7418, iicbus, 1, 1, 1); |