Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757660AbbEVPWq (ORCPT ); Fri, 22 May 2015 11:22:46 -0400 Received: from smtp89.iad3a.emailsrvr.com ([173.203.187.89]:57263 "EHLO smtp89.iad3a.emailsrvr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757541AbbEVPVx (ORCPT ); Fri, 22 May 2015 11:21:53 -0400 X-Sender-Id: abbotti@mev.co.uk From: Ian Abbott To: Cc: Greg Kroah-Hartman , Ian Abbott , H Hartley Sweeten , Subject: [PATCH 2/4] staging: comedi: 8255.h: don't include "../comedidev.h" Date: Fri, 22 May 2015 16:21:36 +0100 Message-Id: <1432308098-29247-3-git-send-email-abbotti@mev.co.uk> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1432308098-29247-1-git-send-email-abbotti@mev.co.uk> References: <1432308098-29247-1-git-send-email-abbotti@mev.co.uk> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1394 Lines: 42 The Comedi "8255.h" header doesn't use anything from "comedidev.h" apart from `struct comedi_device` and `struct comedi_subdevice`, which are only used to construct corresponding pointer types within the parameter lists of function prototypes. Just declare those structure types incompletely and don't bother including "comedidev.h". Signed-off-by: Ian Abbott --- drivers/staging/comedi/drivers/8255.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/staging/comedi/drivers/8255.h b/drivers/staging/comedi/drivers/8255.h index 934b940..977cfe4 100644 --- a/drivers/staging/comedi/drivers/8255.h +++ b/drivers/staging/comedi/drivers/8255.h @@ -19,8 +19,6 @@ #ifndef _8255_H #define _8255_H -#include "../comedidev.h" - #define I8255_SIZE 0x04 #define I8255_DATA_A_REG 0x00 @@ -35,6 +33,9 @@ #define I8255_CTRL_A_MODE(x) ((x) << 5) #define I8255_CTRL_CW (1 << 7) +struct comedi_device; +struct comedi_subdevice; + int subdev_8255_init(struct comedi_device *, struct comedi_subdevice *, int (*io)(struct comedi_device *, int, int, int, unsigned long), -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/