Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1082105imm; Wed, 4 Jul 2018 11:10:43 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd61lfBdZcKoLGMUpbrYRWYNPUsnGenzbKDy/1j0mDIX/Lz7y9S4zjmU1C/OtXYw0yfQgCv X-Received: by 2002:a62:c8c2:: with SMTP id i63-v6mr3236883pfk.73.1530727843009; Wed, 04 Jul 2018 11:10:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530727842; cv=none; d=google.com; s=arc-20160816; b=GBbnBppadEzZwnpPJ94o7ko8xMTmwpOtnRETi1BzYLoHCPf0iswYYJh3n7KYIGtc8m ezPdtY8uW6GRwDcaTW0TSyggMycMd1Q9lgPkbjUCHKDXXH/uZ6a2PZg/1RjcRQeB7eZe wER7ij5h6nOS9pUTTThoqYFVJn3ONA78jQZ/B6ljR8/yNxXE12zwGRS33sQoaEPN0Gbj ruOOkrwZpiDOWg8n3WDqbjKGTFhPm+mK8wd2YUaojFkoRPhlgU2j6lg4fup8ej39qmcT mzzZxC85YSzyIsFkKt5Ti4VfOVSFJKKE3CGcWzD4pFxzrNVeKAy/aKlsF4A0GhrJR5PA bCgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=0bZqXQM6qFpWkZUl4JBtiwUnTD3G3aq4yiPnmOfiqLg=; b=G77oTaDfutNKfdsGbEClJWMTHcSRGUNj2p0ZSbLdJDg2vECfBCr0c9pbmmYN6RaLDs 4FTQkRbIe+px8Adgx0puddG2nBjvE3qEt1G8WkHut4DieQ/RH8hBXjh4LdvDq8e62Vje NNS+THjR52eBlxdUHswLJ14VVZPKHrfYgEyIkmqaNXDfoyyBRdFJ+pypiMhzneXt4CRl JQOj8edkIDau7xnCLZ7cLC4AeQo0MGOSL4snwO5CbQStWeBzbDwEL+YEGY7Ar0xGocM3 CjJ6xFkJmc5SG5Uv+Yjm7p9RFa/lL81qjBAyXh4yjZsOgGPDZSVzO4+G1CuFFxVcsZN2 Ehpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@landley-net.20150623.gappssmtp.com header.s=20150623 header.b="hP6WcB/G"; 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 f8-v6si3557789pgp.293.2018.07.04.11.10.28; Wed, 04 Jul 2018 11:10:42 -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=@landley-net.20150623.gappssmtp.com header.s=20150623 header.b="hP6WcB/G"; 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 S1752887AbeGDSJj (ORCPT + 99 others); Wed, 4 Jul 2018 14:09:39 -0400 Received: from mail-it0-f68.google.com ([209.85.214.68]:53441 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752782AbeGDSJh (ORCPT ); Wed, 4 Jul 2018 14:09:37 -0400 Received: by mail-it0-f68.google.com with SMTP id a195-v6so8785742itd.3 for ; Wed, 04 Jul 2018 11:09:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=landley-net.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=0bZqXQM6qFpWkZUl4JBtiwUnTD3G3aq4yiPnmOfiqLg=; b=hP6WcB/GxffIcWDYObE2elyC0hJ6itfDLoXtxlhXUdKTUmWYjylC+BmqEw+ZKwt9YF 9wbYV0UZBiJiGLdXh05w4969btFzDYUOuATk0b1glflrJbC+2EHjrpg7fZabaXHCtkhL VC11VjbMsqMIshhTdTTIiulgZYZEp1U2WMpW62WN+158unEdao1JdhreXaHv9estCj8H c+vhCzQqpAA+4Gt4bCczsTZFF7tcJKXwYdnHpVh5FYoA5/WT291cgscsfTYtg8cD9T4H d+fv0e0PHilia6++DEX548Sg+E5WVwXZKrd/uHBeicwDaEQENRHShtlCszzgWLa110q9 UzHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=0bZqXQM6qFpWkZUl4JBtiwUnTD3G3aq4yiPnmOfiqLg=; b=e1u4xyl32z1t1C4RfE78po6TnmKIXLFnuxvDYlVLErZAdBHh/vzVjW4wcP0lfltI+t oPWqWMeCkjEd54fHgODa4rBhbrJmcY7KsTUQNlYlshDeN0qMPchVRbFB2a9AXps4pwBn hBlqZIx1KwetNdZ7FnnpykScJu+xsFi/T6qwtlQNYheA9Sk9FlQjRzI25/w9DPKFKoX8 Iu2Pbk6fihbIu5DOyNLmBEvtuIFQDHN1hSvfj3gL2MIlmHuCaiAHQenKQCEXxu1PD/Dg l8szvZzkkKr/rKizf8ZBJ1kMlcAsWERivE903kKChF+qP/faxwvfhAbrWd1Ee6q411a9 iz3w== X-Gm-Message-State: APt69E312g45OngrzjxxHy9Kb9cJakocuzzkDD0mIStOLBWxQKotcXLw qtnQDwqLPqJKORn7T1smEn31o6h2Mns= X-Received: by 2002:a24:2b56:: with SMTP id h83-v6mr2358217ita.94.1530727776682; Wed, 04 Jul 2018 11:09:36 -0700 (PDT) Received: from [192.168.43.158] ([172.58.139.43]) by smtp.googlemail.com with ESMTPSA id g68-v6sm1903422iog.62.2018.07.04.11.09.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Jul 2018 11:09:36 -0700 (PDT) Subject: Re: [PATCH] Fix platform data in leds-pca955x.c To: Andy Shevchenko Cc: clg@kaod.org, Jacek Anaszewski , Pavel Machek , Andrew Jeffery , Linux LED Subsystem , Linux Kernel Mailing List References: <62fb47ea-9296-139b-1eeb-28ddc5826091@landley.net> From: Rob Landley Message-ID: Date: Wed, 4 Jul 2018 13:09:34 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/04/2018 12:04 PM, Andy Shevchenko wrote: > 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 This file doesn't include the word "LED". $ grep -i led drivers/platform/x86/intel_cht_int33fe.c $ Examining it... this is an ACPI driver, Intel's Not-Invented-Here proprietary device tree. So I should convert an sh7760 board to ACPI? How would this fix the problem where the driver's probe function expects a structure as input that is locally defined, instead of the generic structure from linux/leds.h it used to accept? If we feed the probe function NULL platform data _and_ don't have device tree enabled, doesn't it error out? Rob