From patchwork Wed Dec 7 00:14:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Bostic X-Patchwork-Id: 9463569 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 79BDB60459 for ; Wed, 7 Dec 2016 00:17:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6B71628499 for ; Wed, 7 Dec 2016 00:17:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5E377284D0; Wed, 7 Dec 2016 00:17:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id DFCF228499 for ; Wed, 7 Dec 2016 00:17:39 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1cEPtW-0005jv-DS; Wed, 07 Dec 2016 00:15:34 +0000 Received: from mail-oi0-x244.google.com ([2607:f8b0:4003:c06::244]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cEPtM-0004eO-QN for linux-arm-kernel@lists.infradead.org; Wed, 07 Dec 2016 00:15:25 +0000 Received: by mail-oi0-x244.google.com with SMTP id u15so43563244oie.3 for ; Tue, 06 Dec 2016 16:15:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ulah0aUpZ5wF5B4hSi3gJFrgnbuD/G+oLqXvKTNMzH4=; b=0o1mJrtDCitDw79W93Wf+yjmfDDGoJE/GxYwHeqakpPCrpMqga5RLc+xIWlarKEPs5 IjkegGGOzqtiP7ou3aONMfbTA+fZm26ZBkM1fCd1WTTmKMh3sAOR46FpXr5iy14W2rfo WLBNttDom1jw4yNmexjEC/wpWo0J8UcpUhpDfPceOzi4I7ctCvMSouKZoEC3a2Y2yTql IP5lf/PlbT9YJmatpQv2xNJhm+uYLDiWnTPWDr4xz0s+1q1f+aZa3qgDj5RtYP0m3fxr LYOnwbTsv3x1urTObyXr10K60+jfSd/+ZwJlFFnZUlo/uxijNSbV1ugbExsDduRrJDnr pHgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ulah0aUpZ5wF5B4hSi3gJFrgnbuD/G+oLqXvKTNMzH4=; b=UPyziYLLmVvAKfwGzVAtPOFmBC+hBSp4lC7YZqr9z0sGsiZYs2hIhxJrmAnRu4o+mi wBG3ktXJTLfb3IxPahzUc0s7gT4VkZCae7PggB+sBV/S8l6K/277Db+GS24iEGMopIqA 1tL1LmKlOvJe+D9k7SLYlOIEsTeKfop3BhrFMixVYE7tTVcagOrYFMRJIFM0lC6t0aWC KY7GNKqPbkRnTm7K/mX3Bv0Le6LVan3Y31zUEyqa9SrdkA5RCcoIVzGqoYEmeyEuU1OP KBFx3A4vw/ECuPyx7gEm/XW3Jtuvd74Sm9gN6W9ZgWb45yhWTGr9wAhYk47D3ph4btBn nL2Q== X-Gm-Message-State: AKaTC03oVYa8FVO6p5IrflcBV+J7KwaTVdwwf26+AdlrCxZ0l7S4yYaeQouV6S3R9r3vvg== X-Received: by 10.202.71.207 with SMTP id u198mr31481840oia.165.1481069705473; Tue, 06 Dec 2016 16:15:05 -0800 (PST) Received: from Christophers-MacBook-Pro.local.com (45-20-192-79.lightspeed.austtx.sbcglobal.net. [45.20.192.79]) by smtp.gmail.com with ESMTPSA id r102sm8568294ota.11.2016.12.06.16.15.04 (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 06 Dec 2016 16:15:04 -0800 (PST) From: Chris Bostic To: robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk, gregkh@linuxfoundation.org, sre@kernel.org, mturquette@baylibre.com, geert+renesas@glider.be, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 02/16] drivers/fsi: Add device & driver definitions Date: Tue, 6 Dec 2016 18:14:23 -0600 Message-Id: <1481069677-53660-3-git-send-email-christopher.lee.bostic@gmail.com> X-Mailer: git-send-email 2.7.4 (Apple Git-66) In-Reply-To: <1481069677-53660-1-git-send-email-christopher.lee.bostic@gmail.com> References: <1481069677-53660-1-git-send-email-christopher.lee.bostic@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161206_161525_024229_3F6E2AC7 X-CRM114-Status: UNSURE ( 8.84 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: andrew@aj.id.au, alistair@popple.id.au, linux-kernel@vger.kernel.org, Chris Bostic , Jeremy Kerr , benh@kernel.crashing.org, joel@jms.id.au MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Jeremy Kerr Add structs for fsi devices & drivers, and struct device conversion functions. Signed-off-by: Jeremy Kerr Signed-off-by: Chris Bostic --- include/linux/fsi.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/linux/fsi.h b/include/linux/fsi.h index 47aa181..f73886a 100644 --- a/include/linux/fsi.h +++ b/include/linux/fsi.h @@ -17,6 +17,17 @@ #include +struct fsi_device { + struct device dev; +}; + +struct fsi_driver { + struct device_driver drv; +}; + +#define to_fsi_dev(devp) container_of(devp, struct fsi_device, dev) +#define to_fsi_drv(drvp) container_of(drvp, struct fsi_driver, drv) + extern struct bus_type fsi_bus_type; #endif /* LINUX_FSI_H */