From patchwork Mon Jan 16 21:23:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Bostic X-Patchwork-Id: 9519513 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 0A5D360209 for ; Mon, 16 Jan 2017 21:24:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EFE4B282DC for ; Mon, 16 Jan 2017 21:24:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E4DAE28304; Mon, 16 Jan 2017 21:24:06 +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 AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8237E282DC for ; Mon, 16 Jan 2017 21:24:06 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cTEl1-0001jU-Ps; Mon, 16 Jan 2017 21:24:03 +0000 Received: from mail-ot0-x244.google.com ([2607:f8b0:4003:c0f::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cTEky-0001gl-Ge for linux-arm-kernel@lists.infradead.org; Mon, 16 Jan 2017 21:24:01 +0000 Received: by mail-ot0-x244.google.com with SMTP id f9so7506671otd.0 for ; Mon, 16 Jan 2017 13:23:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=ulah0aUpZ5wF5B4hSi3gJFrgnbuD/G+oLqXvKTNMzH4=; b=OOhrfyQqZ1LPcAZW839RYA3ayV4iMQgJDRUGHBMB73lxSvXRHU1BG48+khtDL6jxGn QU6ahqCJjeTL/qqCRb61WZ4TDlpcS4AMqd7mTxmkBXUW20i6B47KRJqvsC132WvZIRPX YkqNBUi/EDGzdYfuzsVD5XUcpC7gOKSabrwCIpAJSS3AU1Sb9YhRh0Qavsex68sev9IW 1EWVz1kooz+f/0Ir+xBrJuH42sfnVJTC3FEDG7sjqGp0koOg1XzgZWrWqtQtylSmLrkC DAiwhajwImcfPNvtU1agXq5C5ISChQKTHNWsu5PVjb/xMYGN6NN4ZB03gGaaJgAh8zf+ d8eA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=ulah0aUpZ5wF5B4hSi3gJFrgnbuD/G+oLqXvKTNMzH4=; b=COI5ReOZpDYTtHxUqmF5cywZ6xvk1Za8Xs3H0oFdijOzp7m6qigZw+DCpDGsiVxm8c u9coszxCjSVZLp5GPNWFtPdBOEpjHnLc6eitRhwWuuN3W6CuP+u3b6t5kiLq/xzV1GUN GzBpOvHj3BmsAsgo5ioMBq32W1EahSfQdjPMonX7lc5jOJu+ApubXzNjXF/Q5yRou3l8 2QWrWRGhq3WF9ZfOEAfSMN8sDrPGcQCJCyE0unAHJ6yl7pbbZcwctl07VX+Xscd3ZOp7 aw4WEPQ26u4D2FKVLzOg8zO+q8E2Ddm155lehfzDyufZfIawHiCtSGUFBw+mBUOEhUSM Xhgw== X-Gm-Message-State: AIkVDXLYy8QJXuyGu772C/wRyelBGILVlKIf9Yl1HT2AJ5lybm/fM5PjAg+r3CGLhDi3mQ== X-Received: by 10.157.47.234 with SMTP id b39mr19030815otd.0.1484601819498; Mon, 16 Jan 2017 13:23:39 -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 h74sm11562695oic.9.2017.01.16.13.23.38 (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 16 Jan 2017 13:23:38 -0800 (PST) From: christopher.lee.bostic@gmail.com To: robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk, gregkh@linuxfoundation.org, mturquette@baylibre.com, geert+renesas@glider.be, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, joel@jms.id.au, jk@ozlabs.org, linux-kernel@vger.kernel.org, andrew@aj.id.au, alistair@popple.id.au, benh@kernel.crashing.org Subject: [PATCH v3 02/18] drivers/fsi: Add device & driver definitions Date: Mon, 16 Jan 2017 15:23:36 -0600 Message-Id: <1484601816-98188-1-git-send-email-christopher.lee.bostic@gmail.com> X-Mailer: git-send-email 2.7.4 (Apple Git-66) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170116_132400_601311_AF35429C X-CRM114-Status: UNSURE ( 8.42 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Chris Bostic 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 */