Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754252Ab3JDAau (ORCPT ); Thu, 3 Oct 2013 20:30:50 -0400 Received: from mms3.broadcom.com ([216.31.210.19]:1651 "EHLO mms3.broadcom.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754001Ab3JDAap (ORCPT ); Thu, 3 Oct 2013 20:30:45 -0400 X-Server-Uuid: B86B6450-0931-4310-942E-F00ED04CA7AF From: "Sherman Yin" To: "Rob Herring" , "Pawel Moll" , "Mark Rutland" , "Stephen Warren" , "Ian Campbell" , "Rob Landley" , "Christian Daudt" , "Russell King" , "Linus Walleij" , "Grant Likely" , "Matt Porter" cc: devicetree@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, linux-arm-kernel@lists.infradead.org, "Sherman Yin" Subject: [PATCH 1/4] pinctrl: Add void * to pinctrl_pin_desc Date: Thu, 3 Oct 2013 17:23:16 -0700 Message-ID: <1380846199-12829-2-git-send-email-syin@broadcom.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1380846199-12829-1-git-send-email-syin@broadcom.com> References: <1380846199-12829-1-git-send-email-syin@broadcom.com> MIME-Version: 1.0 X-WSS-ID: 7E50D3AD2L891410617-01-01 Content-Type: text/plain Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1272 Lines: 38 drv_data is added to the pinctrl_pin_desc for drivers to define additional driver-specific per-pin data. Signed-off-by: Sherman Yin Reviewed-by: Christian Daudt Reviewed-by: Matt Porter --- Change-Id: I78b2c44b93d88b04897fd0af80ffce213e338d6b --- include/linux/pinctrl/pinctrl.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/pinctrl/pinctrl.h b/include/linux/pinctrl/pinctrl.h index 5979147..c8e42c4 100644 --- a/include/linux/pinctrl/pinctrl.h +++ b/include/linux/pinctrl/pinctrl.h @@ -32,10 +32,12 @@ struct device_node; * pins, pads or other muxable units in this struct * @number: unique pin number from the global pin number space * @name: a name for this pin + * @drv_data: driver-defined per-pin data. pinctrl core does not touch this */ struct pinctrl_pin_desc { unsigned number; const char *name; + void *drv_data; }; /* Convenience macro to define a single named or anonymous pin descriptor */ -- 1.7.9.5 -- 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/