Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0FB67C76195 for ; Fri, 17 Mar 2023 20:53:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230094AbjCQUxz (ORCPT ); Fri, 17 Mar 2023 16:53:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229644AbjCQUxy (ORCPT ); Fri, 17 Mar 2023 16:53:54 -0400 Received: from mail-yb1-xb31.google.com (mail-yb1-xb31.google.com [IPv6:2607:f8b0:4864:20::b31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A971730ED for ; Fri, 17 Mar 2023 13:53:52 -0700 (PDT) Received: by mail-yb1-xb31.google.com with SMTP id z83so7123619ybb.2 for ; Fri, 17 Mar 2023 13:53:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679086432; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=81k/wsN5LJHSw7IMmKprz7MljTYWXfOO3qNXbhpMYDY=; b=GbicmX698aU6P3ndLa71hM7B5bhfNOjyuIQiA9eX8PBOUq1/RzNGBMXbQ0iECrEv5q Qs2X2vRlWaonAomu6hJyTwJyst53I6ZQ3AwexcFFxvypToqzgoHD0fkw2SQ2SPgYDhQR 9YJ8jnhRejBiis4ni0UupkquEUOOR9t1B4kTsa+LnMK4mG+TfWQwbJZmH+Ig8uje91Dh 9TageZMNT90SRCTnPZvM+X195DHkOewu9tGsi5ElbC+A16u6x8o1p0fGf+3NYX48p5Pm 3EYTdu4fPQ8e7qhaNJFLLBWfW480I1Nua6D65Pmpkq/ezNlYQ+TljEyo4C433zu+IWft T1jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679086432; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=81k/wsN5LJHSw7IMmKprz7MljTYWXfOO3qNXbhpMYDY=; b=oj6gir3fMZ39hU3neH8jhR7pq52vHbYCj2tsqLVBtY7b2PUHjsaUjTuxUHkV1YOyk/ rQ65imBmZFEtLImyKgpgPgz5pg3jKwrLqMI8gNTV1CKOybteOMlDp4zcbu9aC02szJWM hQQxWB+TfWCYS4MVuldSZxFwK8E0McGjZPkOyyqxVQp+ngmZTQUhsOCVaAGNr0vIILgH lOZ1zwVzT3AFSMXvdN5K7xJGQaLC9mhzIRUeLZEAVJwVmqRe33QPLDUn5tG79Ryd8RIS WPC9B9/oe5ozi+TtH9ZvKTBd/WGZzATn4QhgVOo5Docs5+HJJ75ycoYO4gInbnq4717l 3dpw== X-Gm-Message-State: AO0yUKWJzBYxz1nDPiU4Z07QUMXSZDO/xQQwkzefD/nRyutXvFUJ5NpF /JyUP7qj1NH/oY/U4QQsu7/dsAmyIKwIk1nhH1CPjQ== X-Google-Smtp-Source: AK7set/xMcJB36hfzj7lWnW/tGG+jyb989JVS6ZTe5X+GsibjG7yhs/EkXgKMrPvyfaL3Ej3pxGpi4IcL7WRbw5L0/o= X-Received: by 2002:a5b:611:0:b0:b67:f07:d180 with SMTP id d17-20020a5b0611000000b00b670f07d180mr357039ybq.5.1679086431900; Fri, 17 Mar 2023 13:53:51 -0700 (PDT) MIME-Version: 1.0 References: <20230317185230.46189-1-andriy.shevchenko@linux.intel.com> In-Reply-To: <20230317185230.46189-1-andriy.shevchenko@linux.intel.com> From: Linus Walleij Date: Fri, 17 Mar 2023 21:53:40 +0100 Message-ID: Subject: Re: [PATCH v1 1/1] backlight: hx8357: Convert to agnostic GPIO API To: Andy Shevchenko Cc: Bartosz Golaszewski , Dmitry Torokhov , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, Bartosz Golaszewski , Lee Jones , Daniel Thompson , Jingoo Han , Helge Deller Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 17, 2023 at 7:51=E2=80=AFPM Andy Shevchenko wrote: > The of_gpio.h is going to be removed. In preparation of that convert > the driver to the agnostic API. > > Signed-off-by: Andy Shevchenko Thanks for fixing this Andy! > -#if !IS_ENABLED(CONFIG_LCD_HX8357) > +#if IS_ENABLED(CONFIG_LCD_HX8357) > /* > * Himax LCD controllers used incorrectly named > * "gpios-reset" property and also specified wrong > @@ -452,7 +452,7 @@ static struct gpio_desc *of_find_gpio_rename(struct d= evice_node *np, > */ > const char *compatible; > } gpios[] =3D { > -#if !IS_ENABLED(CONFIG_LCD_HX8357) > +#if IS_ENABLED(CONFIG_LCD_HX8357) > /* Himax LCD controllers used "gpios-reset" */ > { "reset", "gpios-reset", "himax,hx8357" }, > { "reset", "gpios-reset", "himax,hx8369" }, Eh what happened here .. it's even intuitively wrong. I would add Fixes: fbbbcd177a27 ("gpiolib: of: add quirk for locating reset lines with legacy bindings") It wasn't used until now it seems so not a regression and no need for a separate patch. Other than that it looks correct. Reviewed-by: Linus Walleij Yours, Linus Walleij