diff options
Diffstat (limited to 'sys/dev/i2c/pca9554.c')
-rw-r--r-- | sys/dev/i2c/pca9554.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/i2c/pca9554.c b/sys/dev/i2c/pca9554.c index 473c3563f65..4c05f07930b 100644 --- a/sys/dev/i2c/pca9554.c +++ b/sys/dev/i2c/pca9554.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pca9554.c,v 1.11 2007/06/24 05:34:35 dlg Exp $ */ +/* $OpenBSD: pca9554.c,v 1.12 2007/07/31 21:18:49 cnst Exp $ */ /* * Copyright (c) 2005 Theo de Raadt @@ -141,8 +141,8 @@ pcagpio_attach(struct device *parent, struct device *self, void *aux) #endif printf(":"); - if (8 - outputs) - printf(" %d inputs", 8 - outputs); + if (PCAGPIO_NPINS - outputs) + printf(" %d inputs", PCAGPIO_NPINS - outputs); if (outputs) printf(" %d outputs", outputs); printf("\n"); |