Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp3987499ybp; Mon, 7 Oct 2019 01:03:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqxY+xsZ6MJrOFpAtafB/dIsk9SQPtpejdmWsvGF/cK5TOLAXpajhPIqamfsgs31gvxHkI4X X-Received: by 2002:a50:b6a8:: with SMTP id d37mr27736110ede.63.1570435400580; Mon, 07 Oct 2019 01:03:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570435400; cv=none; d=google.com; s=arc-20160816; b=oaK/IMAnVRu5fSpZVt2r5cpWxnR5DINKhsKmK7yKWlnHYy28C7F3/OnGIchwrsBPBp i3fQh8BDGmXbMGkZhGYdR9+VZqoiSHJR8T2b6LeH4qfliTEFHfJnJnwVyObEAFRQAzBi smCcmdwKyeFphFAf09EPyCPlDvXnL32Qcrms+HBf1D/n6fl25EYYboU+0oz8fF8Auddc J0eIx1ZfTT1X1bkThlmZcaoPeUk3xapHmuMCZ85Y+lBhoJl+UXAfm6nfLO8c4HWF2bYR HvX6+jW4Mtmm52fN4CqFiWTwsiz+E68Juz2C8PwmloWOYwiQ0VEuUrbbSDECQDTZaUU5 5xcQ== 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; bh=WiJjEh2P/dyMb1MJzsWFaEgMTfnFgUH+HoqfUj6XAKA=; b=HoWRNbgaWbKuEOP5ifuX3batwSPXsZMFOyQxL6oVvgxVFwKkqILzddFsZNxVNzRNqR +EpAffn2/CZur7N5bvWm3P5G+YaDDGNJSmykZGxnAJqUWsmUS337YJ1P0E73+fhdh90n xIGhjBKfHml2qlBxGRciV1r7OiwmtyU/dvROgUsS6yhVgYSddi1xrn5gQiMSrRpIBZSB jQQSy6cNNxjCXGZIyai2BtU2fE2EuXF+4hMK5ThOgCH/IN5x5WFOtTrkjRYj31cdlP8G TjDtkUpFYImLHDIxIUS8rONj2ILsDOX5dBTB8wJ5JxjP9+Lhkxr5ipYo8HiXi+o/qbkG /HHw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g11si6794015ejc.366.2019.10.07.01.02.52; Mon, 07 Oct 2019 01:03:20 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727410AbfJGICC (ORCPT + 99 others); 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-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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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