From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C13C3C47404 for ; Mon, 7 Oct 2019 08:02:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9E78B20867 for ; Mon, 7 Oct 2019 08:02:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727103AbfJGICC (ORCPT ); Mon, 7 Oct 2019 04:02:02 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:43357 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726889AbfJGICC (ORCPT ); Mon, 7 Oct 2019 04:02:02 -0400 Received: by mail-ot1-f67.google.com with SMTP id o44so10172711ota.10; Mon, 07 Oct 2019 01:02:00 -0700 (PDT) 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=WiJjEh2P/dyMb1MJzsWFaEgMTfnFgUH+HoqfUj6XAKA=; b=eltyb27puKV6cRWxqPkFxhTgfivvdftkv1x+0jwrQXOjmQFwFlAf/+DQCSRTL4bqhG 3ejuS7CrKclCons3kSC+F9whC/FoYnmq68huoi6oGwiPF7bkcyMDIdfBHDmrj4pi92et jrh6SxHg8AQUQqsELmZmjSXduu/VVO6Q+asGr7WcXcKIcaT9HW3KBZdPio+Aacm3drmQ GBTugQi0JVOdYhBzWCi0/lc1F9obdHz4FbBBTicNhBC1axhgKvGQXCBp8URklsjD0h4c F2p/2rFVUPM6Ew385+RjHxpAu/lH8BrpiC6hZtPHcLa5bX87476fQZzyT47wYXMKEqfR MrsA== X-Gm-Message-State: APjAAAXpx/7WYiJuLMqOxG3PILNKQCePoxdJwDjaYJFcuFwoQHGnA0qz 9CP+SBSZiJQN6hD953smcZN3WvXvgQv/ZRBy5Fw= X-Google-Smtp-Source: APXvYqyr5gTwqlNjWjpoY+fbY/HbAeUc/RMYmX3o91M1ZyhhDDrBuaEKqKaRa2ZbH9RuuHNx4tCPjpqyo1z+igJCvu0= X-Received: by 2002:a9d:6642:: with SMTP id q2mr19938204otm.250.1570435319780; Mon, 07 Oct 2019 01:01:59 -0700 (PDT) MIME-Version: 1.0 References: <20191004214334.149976-1-swboyd@chromium.org> <20191004214334.149976-2-swboyd@chromium.org> In-Reply-To: <20191004214334.149976-2-swboyd@chromium.org> From: Geert Uytterhoeven Date: Mon, 7 Oct 2019 10:01:46 +0200 Message-ID: Subject: Re: [PATCH 01/10] leds: pca953x: Use of_device_get_match_data() To: Stephen Boyd Cc: Linux Kernel Mailing List , Arnd Bergmann , Riku Voipio , Rob Herring , Frank Rowand , Jacek Anaszewski , Pavel Machek , Dan Murphy , linux-leds@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-leds-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org On Fri, Oct 4, 2019 at 11:43 PM Stephen Boyd wrote: > This driver can use the of_device_get_match_data() API to simplify the > code. Replace calls to of_match_device() with this newer API under the > assumption that where it is called will be when we know the device is > backed by a DT node. This nicely avoids referencing the match table when > it is undefined with configurations where CONFIG_OF=n. > > Cc: Arnd Bergmann > Cc: Geert Uytterhoeven > Cc: Riku Voipio > Cc: Rob Herring > Cc: Frank Rowand > Cc: Jacek Anaszewski > Cc: Pavel Machek > Cc: Dan Murphy > Cc: > Signed-off-by: Stephen Boyd Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds