Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2414412imm; Mon, 10 Sep 2018 00:16:47 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZbbRuzGOlpuaxylN38nAUdwmTYgW5Kd9LG6xaRP8zIxfHob1P+ejgMRgf1rA78WyUVFhMY X-Received: by 2002:a62:aa02:: with SMTP id e2-v6mr21915272pff.211.1536563807849; Mon, 10 Sep 2018 00:16:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536563807; cv=none; d=google.com; s=arc-20160816; b=FFlJ9EgLqAqbKA/2/+bxPQfPOvIu7IU7Wlh3ZBkMvMiB/37AHVwdqeoQU2kHC/3fwi ZaTt7JIcaM2/QxLC9V/dnn+XJd4Y6YB6OlusS2MMO6LVB8FGcjwx7Uv7Z4rum9//NDir sCxN3Ebbkm+xLBzs0JlWKpEHoupebPrD2ejGGaxXWloK27+XijCiVIVD4KXYcYDDLXiB 1AV0dTc772A5PBpmDziWw1iqyWbTh9Ho2gzoqQX22qZ36fJMZQeVjwkQjJzA/dAg41rw 4HrYw3PHXzxMy2VGqozNbtXI0QVdByxFRR5apqyL081IJUDaLxHCZt2rNU0kmDNguBpO 93iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=TCIXcAsLTBKDCVFPfScy4zJ0KyDvhKc2vaw0upWlnNU=; b=WM0To3kx95jWYDXCJ9FJkZO/u7oztd4uHQR0cQ9G0f06G1Q6HaAZQ13smaI+0Ae8Bx sCOab3SAY8aIFzQXMIM/aEtZWC1jbmjOCDjHH+mBFrpvm8Ei2ME7sw+jPJYOOFwn8qB9 bBcnhF9hRT4ZCOowUKzMl77nSOOPULuXCx0wmrCt9vslZIOZBRkuyUh2ZMOz6gxLa2/9 s5NoK4DJ6A+6bPRzc+2bnb8fFT3/iCWWPqbgcA1n4kOKTGKe9grCvO3MwJaTI0srHGM+ vXb5WeI3tcZGFN1vyxgQZmvF35RQjwRRE4QJcqnuLeUyAEH6H5Q5xgQc1Ywhp7hDURCh ashw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HAcVqxGJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a20-v6si16028230pgi.184.2018.09.10.00.16.32; Mon, 10 Sep 2018 00:16:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HAcVqxGJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727735AbeIJMIB (ORCPT + 99 others); Mon, 10 Sep 2018 08:08:01 -0400 Received: from mail-it0-f68.google.com ([209.85.214.68]:54714 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727358AbeIJMIB (ORCPT ); Mon, 10 Sep 2018 08:08:01 -0400 Received: by mail-it0-f68.google.com with SMTP id f14-v6so28227403ita.4 for ; Mon, 10 Sep 2018 00:15:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=TCIXcAsLTBKDCVFPfScy4zJ0KyDvhKc2vaw0upWlnNU=; b=HAcVqxGJyAmKxZbF5HptMfoP7uU4JDADqzSRVYs9L6Ln1LuJo//iSk3bOIt9m2385B 7J5CYwbeb0Hj4PzROgakDvpKzWEQ4j95ZP91+wXD6y4A2jTMp12QrhgY5rHhEpvCue/J 5/cH6BJIO2BA7C8kN9v5jPXpwHwssrNP0fLuQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=TCIXcAsLTBKDCVFPfScy4zJ0KyDvhKc2vaw0upWlnNU=; b=AP5Ya5tZYn2xXOtGMCqmEo5LV4eqfEK+J98F9E2weuyXre+JeKiaY9FE63zSdVlRHQ iUm1P9NFRdHVg9DyZTulVcECBUAlVgwf8FlwVaE1pDwBin9bgfh2FbdJMfn3VXqUyTwB s9MadNcZywrMWZPGRVF8vKskFMPd9INql69mVnUAJbQY+vLrMfw06hxEU0apvQQGhInG tk03cJWMHbu0uG0R+ldpL1hB54nwOwWo01D9RJUji6H4UVxTzkFofaj7am4YErp83kr4 0GemWik7xEGrBOUTYwtCX3n39Z0jJPk9MZxj1O3kmylMTWAZWpkhKvrXasoK7rSn5C7s pl2w== X-Gm-Message-State: APzg51Cw0XeLR7cKEo+ICbbuL9YhWPq1X8Y3DeBHkIrbkUi8eNaVHr9W CQqcp4vxGrDJCjoeKm2+2jal4zUZKEi3QRUN4kQp0g== X-Received: by 2002:a02:5916:: with SMTP id p22-v6mr16282926jab.113.1536563724926; Mon, 10 Sep 2018 00:15:24 -0700 (PDT) MIME-Version: 1.0 References: <20180717231448.14958-1-jmkrzyszt@gmail.com> <20180909225605.16463-1-jmkrzyszt@gmail.com> <20180909225605.16463-2-jmkrzyszt@gmail.com> In-Reply-To: <20180909225605.16463-2-jmkrzyszt@gmail.com> From: Linus Walleij Date: Mon, 10 Sep 2018 09:15:13 +0200 Message-ID: Subject: Re: [PATCH v3 1/3] video: fbdev: omapfb: lcd_ams_delta: use GPIO lookup table To: Janusz Krzysztofik Cc: ext Tony Lindgren , Aaro Koskinen , Boris Brezillon , =?UTF-8?Q?Miqu=C3=A8l_Raynal?= , Richard Weinberger , David Woodhouse , Brian Norris , Mark Vasut , Bartlomiej Zolnierkiewicz , Linux-OMAP , Linux ARM , linux-mtd@lists.infradead.org, linux-fbdev@vger.kernel.org, "open list:DRM PANEL DRIVERS" , "open list:GPIO SUBSYSTEM" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 10, 2018 at 12:55 AM Janusz Krzysztofik wrote: > Now as Amstrad Delta board - the only user of this driver - provides > GPIO lookup tables, switch from GPIO numbers to GPIO descriptors and > use the table to locate required GPIO pins. > > Declare static variables for storing GPIO descriptors and replace > gpio_ function calls with their gpiod_ equivalents. Move GPIO lookup > to the driver probe function so device initialization can be deferred > instead of aborted if a GPIO pin is not yet available. > > Pin naming used by the driver should be followed while respective GPIO > lookup table is initialized by a board init code. > > Cc: Bartlomiej Zolnierkiewicz > Signed-off-by: Janusz Krzysztofik Good work as usual: Reviewed-by: Linus Walleij FWIW I think the entire drivers/video/fbdev/omap/* could be pretty easy to migrate to DRM if you compare the simple drivers/gpu/drm/pl111 or drivers/gpu/drm/tve200 drivers. Just inspiration! :) Yours, Linus Walleij