From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754142AbcKHSQR (ORCPT ); Tue, 8 Nov 2016 13:16:17 -0500 Received: from mail-pf0-f177.google.com ([209.85.192.177]:33305 "EHLO mail-pf0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750869AbcKHSQQ (ORCPT ); Tue, 8 Nov 2016 13:16:16 -0500 From: Kevin Hilman To: Axel Haslam Cc: linus.walleij@linaro.org, gnurou@gmail.com, nsekhar@ti.com, david@lechnology.com, grygorii.strashko@ti.com, keerthy@ti.com, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] gpio: davinci: Use unique labels for each gpio chip Organization: BayLibre References: <20161103113410.2163-1-ahaslam@baylibre.com> Date: Tue, 08 Nov 2016 10:16:13 -0800 In-Reply-To: <20161103113410.2163-1-ahaslam@baylibre.com> (Axel Haslam's message of "Thu, 3 Nov 2016 12:34:10 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Axel Haslam writes: > The gpiod framework uses the chip label to match a specific chip. > The davinci gpio driver, creates several chips using always the same > label, which is not compatible with gpiod. > > To allow platform data to declare gpio lookup tables, and for drivers > to use the gpiod framework, allocate unique label per registered chip. > > Signed-off-by: Axel Haslam Acked-by: Kevin Hilman