From bfcfcc95f91a9ef756b3184426381561b7f4dc23 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Thu, 22 Mar 2007 16:55:32 +0000 Subject: split userland & kernel struct sensor/sensordev so that the addition of new fields in the future is less disruptive. This is done similar to how struct proc is handled for ps(1). ok jmc (man page changes) tested fkr simon, and more suggestions from millert --- sys/dev/i2c/pca9554.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev/i2c/pca9554.c') diff --git a/sys/dev/i2c/pca9554.c b/sys/dev/i2c/pca9554.c index 237c78d97ef..dae1db08d55 100644 --- a/sys/dev/i2c/pca9554.c +++ b/sys/dev/i2c/pca9554.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pca9554.c,v 1.9 2006/12/23 17:46:39 deraadt Exp $ */ +/* $OpenBSD: pca9554.c,v 1.10 2007/03/22 16:55:31 deraadt Exp $ */ /* * Copyright (c) 2005 Theo de Raadt @@ -45,8 +45,8 @@ struct pcagpio_softc { struct gpio_chipset_tag sc_gpio_gc; gpio_pin_t sc_gpio_pins[PCAGPIO_NPINS]; - struct sensor sc_sensor[PCAGPIO_NPINS]; - struct sensordev sc_sensordev; + struct ksensor sc_sensor[PCAGPIO_NPINS]; + struct ksensordev sc_sensordev; }; int pcagpio_match(struct device *, void *, void *); -- cgit v1.2.3