Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1027228imm; Wed, 4 Jul 2018 10:05:25 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdgp5MbuNkN8e1qlgcLqJkCsTde4kR4ZiVuyn//oTmNldMZCchStEbSQiYzXNw1DbWpFhbc X-Received: by 2002:a17:902:6047:: with SMTP id a7-v6mr2863120plt.188.1530723925623; Wed, 04 Jul 2018 10:05:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530723925; cv=none; d=google.com; s=arc-20160816; b=hTCLvzSblOjbyYhIz7dHNRpKBgfovNbV7c1hm5Lj45KMcoYmhqfbTe/tYNGhGp29DB fuIx+DS4sUGozJD+9WwLiXmS29ugXvUspdC1xJfF14GQdEdbdr8+6NfhCB1o5QsjpJUj Di88HHomDKqYkLWMj/qrHnv/a3Vy90O6KVw1TU4Rb0jtHsa3+5PchFY9TFcml130QIWN PPdYMXz5r90jxDIdUpE2GnYjWgb+U6z6Qk9B4CRG3HWzG2ozjAOFge/kckz4A3lNJUw9 JAzgF0bT1NWblGLhIR4pPb74HJoL9MZCEFSjmktIRw9oG1NG+L+I1e3AEQl6LBdaKR3I mm7g== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=v1cWStz+u9BUkA3lZMmGnduq900TD/VO3vq7WG3UvRA=; b=kwVU3bAEgNFaztB+6nUbOcbt96HWr1BjfDXNELNitFg1vmk9Q1R7w00Sl2CHcTIDFh qsHrNGUL1bspYLnVbY2fM5tm7d9AFI5bSdhQ1IPi93uwUuQ32VAXaDQq7XaFkaGDem4p mqM3kkT7Wm6TeT1lQlSpeZMmi9E3ZmhvXx7mcWdtKXWVGAmPSYQMjKO/4H7K42LaSvc3 tx3unkHYtignFCbPCTygrjoQN5aj6XYO9l8NyC5rFmOFUAZiylEUaBRBlmenbpqV32Du HRFkAveJHwTqeZAWFcy4aXVm8ZKoL2Tj47W+7ee6Isi9euhTDEW69xLteM52SglZcqth qubQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MqVVe3Vl; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 28-v6si3819502pgk.111.2018.07.04.10.05.11; Wed, 04 Jul 2018 10:05:25 -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=@gmail.com header.s=20161025 header.b=MqVVe3Vl; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753151AbeGDREe (ORCPT + 99 others); Wed, 4 Jul 2018 13:04:34 -0400 Received: from mail-ua0-f194.google.com ([209.85.217.194]:42024 "EHLO mail-ua0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753068AbeGDREc (ORCPT ); Wed, 4 Jul 2018 13:04:32 -0400 Received: by mail-ua0-f194.google.com with SMTP id x18-v6so3818822uaj.9; Wed, 04 Jul 2018 10:04:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=v1cWStz+u9BUkA3lZMmGnduq900TD/VO3vq7WG3UvRA=; b=MqVVe3VltFXSStrOZcXUTgvh5iL+eTwgHjPiaD9VdR6kApNelxSiaD+PlL4j77BY9j cHSGtc555sgzxYM54rBFAVTfuHGCvt4KlEKZJHj0nSEQU/T0CBmk4FaowPNt32j0purF 3nqXfvJiRf+kVKhQILnRZdPRfDWAlEMvfx9MMweR9MZ+AdZR6Z6Q+jskJaBqXb+Wmy6W 6yikYq93k571JrFQT+C4K2QxAiRdcfk1lkr5jNdxVx3UrVYO+l7il2qM8IXyuF9tqVfj p5NRtPW9zoxKbQ9vPuiSmRB5p/vNEn/GfrjIyQVbWOZOYxrTLAmC9lF1OAwyf9hF/AS/ S7Cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=v1cWStz+u9BUkA3lZMmGnduq900TD/VO3vq7WG3UvRA=; b=DR9GZsw1x4eNpkhI9PMXfFPpK/jMOCDYVbfI1faVOsHI4bnn5+BeQWdZG1EhguQ2oU 95Uuc9AH920zdlKCtH6SYtV1MPtb+L/4DWNN1BnOsApwQvwRcL8I3aVBE9pdhmLT1aZ5 j7NF3Y8USeFZEQFCYsJFVbL6Og9RRqq+e47pvp05CtrwvM3klAieEElSC71xFEaaTdRN xGf7/+APsVhPf/SIfLUWDsFgfpgfdExxMYnuEuFLoeZds2VjXRNHmBEl8eXqzO0dxJfJ 0LfiyZCmYboKtjkFD2gmA8QlJXz/FjixI7oLmFostFCsO+Z10mw3uLu8T6VYaNLgtPy8 jMIQ== X-Gm-Message-State: APt69E0AE2JdcgONfw4zG9Ti0uGUfl9w+ECOIyIUc9mP/ovgCkd4dbTz w4sasLqDOXt/wgMAlNOvgwOeT4jDAhhTo7uco2s= X-Received: by 2002:ab0:1446:: with SMTP id c6-v6mr1668164uae.12.1530723871212; Wed, 04 Jul 2018 10:04:31 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a67:2149:0:0:0:0:0 with HTTP; Wed, 4 Jul 2018 10:04:30 -0700 (PDT) In-Reply-To: References: <62fb47ea-9296-139b-1eeb-28ddc5826091@landley.net> From: Andy Shevchenko Date: Wed, 4 Jul 2018 20:04:30 +0300 Message-ID: Subject: Re: [PATCH] Fix platform data in leds-pca955x.c To: Rob Landley Cc: clg@kaod.org, Jacek Anaszewski , Pavel Machek , Andrew Jeffery , Linux LED Subsystem , Linux Kernel Mailing List 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 Wed, Jul 4, 2018 at 8:00 PM, Andy Shevchenko wrote: > On Wed, Jul 4, 2018 at 3:46 AM, Rob Landley wrote: > For now, you can switch to unified device properties API (basically > un-ifdef pca955x_pdata_of_init() and replacing of_* by device_* or > fwnode_* compatible calls) and providing a static table of built-in > device properties in the platform code in question. > (see include/linux/property.h, for example users of > PROPERTY_ENTRY_U*() macros, like arch/arm/mach-pxa/raumfeld.c) Taking into consideration that device is enumerated by i2c core, which is being aware of device properties (1), better example might be drivers/platform/x86/intel_cht_int33fe.c (1) commit d3e1b617ae20c459627f501b4bc55b1ea91f662b Author: Dmitry Torokhov Date: Thu Feb 2 17:41:28 2017 -0800 i2c: allow specify device properties in i2c_board_info -- With Best Regards, Andy Shevchenko