Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6504891rwr; Mon, 24 Apr 2023 22:30:09 -0700 (PDT) X-Google-Smtp-Source: AKy350aZuCtxV4oxldWdxSQozgmRZsWuArPPvyyIDrMqzJBcodyU1E1d0+wX2NOADSFueNkYMCpb X-Received: by 2002:a05:6a20:2d29:b0:ee:f5a4:c072 with SMTP id g41-20020a056a202d2900b000eef5a4c072mr18527547pzl.46.1682400609595; Mon, 24 Apr 2023 22:30:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682400609; cv=none; d=google.com; s=arc-20160816; b=I9b1ecNhCn6QaFCE+0CxvIBbCIZpWneldNHLosaTSjFsYasO3TejyEcBYp6ubvSxU2 QwSzydI+OVKEMDnfWRFv+kpH6uOyxSe0o1RkG+oInWGxYV81fB/uUwqFkKnpCUkQ3m+L 5F3yGOh247v7BNt3Et6ph+kUViaKCvpkwKbGHqzyA6lt3acIBmxqJdMNUK6diDQ7DsU6 ktSJK0dHwhJBWW0ewzGXB38u0j5qbhWDNiz+KPNo6gZrcjdBBo2+jptVmLac/ACsgROr X002OfwrA+4IFA1PzjJBFwm4Js3rETZnVHqq9NznE1yVY8JTXac8PBlFxBKcCwYXHOBJ DhOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id:dkim-signature; bh=bQhkG9xAytA2mlNSKXfOWr2pzT8B0inX1jNWQEbw998=; b=umissoO7OorhZxYItAvIDVMdAbAsKQZLUM0NL6tnI7KLs0TDmyPgZth3oXwOimYxRD Umv4gKvmTSjweAhfMMigvDQMyH+m/t6bVX6H9TRT37Hpr0/iSeBhrln6PzIP9O6eEGGR 73G5MG6rrcLxFrDtFf6DCfqfb0p+TCyoeaUUzJv2Klh4Lm0n53qu0iuup7OAeGHcivfZ c90dWJGYjAKX8xMN63zIJaCMpBsKZYeX2j9zqJLQw3rSUktJVn1yZSdOrjlb3kH9w+ZD bcB1ENWxjvzw15JyiYdXVwYBKSOfcewHrVjv1pl0A/XYLMuuRCOHO5cJZRCnMTnoMkUe TdfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=Haf5AuIY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 21-20020a631555000000b0052170d22eadsi12422216pgv.743.2023.04.24.22.29.57; Mon, 24 Apr 2023 22:30:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=Haf5AuIY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S233082AbjDYFYL (ORCPT + 99 others); Tue, 25 Apr 2023 01:24:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229637AbjDYFYF (ORCPT ); Tue, 25 Apr 2023 01:24:05 -0400 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3C504C0F; Mon, 24 Apr 2023 22:24:03 -0700 (PDT) Received: by mail-lj1-x22c.google.com with SMTP id 38308e7fff4ca-2a7ac89b82dso50485071fa.1; Mon, 24 Apr 2023 22:24:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682400242; x=1684992242; h=content-transfer-encoding:in-reply-to:subject:from:references:cc:to :content-language:user-agent:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=bQhkG9xAytA2mlNSKXfOWr2pzT8B0inX1jNWQEbw998=; b=Haf5AuIYrwmCP+N3uXDNv1ED7H4RSsfgQjcQr4Ih5UkTjbPJzTRvMfs/6KAX2cuvWo dv7tPyZMG7CYdoBlOKBOPupH6BYdvMGU8wPcmYCuwn+wDqy3g9Afe7UPU0iqVw7ZnJZ0 V2R6qEd6RUzdp/ge/F4MqD1a5m3BU+QYEcvKZZVYXxjxbCr+OY8a3jAvhhjLButJPUcQ I2yOqa4ey2rjQyaeuCIuG8CxH04+YsF79WS7lISymbEQJfJSRybmwYf/YUNtfkv9qLx3 vaWhlWo++0kc548alTjykBr2rRs9U5eg/KTrHMwXnDhDkdsbXdIqQd1r6C3D6INmIxNw JKKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682400242; x=1684992242; h=content-transfer-encoding:in-reply-to:subject:from:references:cc:to :content-language:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=bQhkG9xAytA2mlNSKXfOWr2pzT8B0inX1jNWQEbw998=; b=hEFtYoflW6yZV4VsX1UbVNfyMWLd2oxA5r/jEjFD6/euxvgCQdgW0ln2iamFmor5n8 VmOvYBRAICxtgGjuyroieh4R9VVVwnUbYz6vQO/OmxBW1c6ZrQPOjKlxkcxmkUaaSO9+ nUObH+3ENwWaSJaJGMYBoIP4jNyUwZHQWps4ZXmQEuT1JaXRUfEnrOxIyx99O+VYQiCd 8Fmroy3SUoGX5ibhE0nkaZzEyRbDFx+fbwuRNEecLqlfb23jmN4y2KaovCfP0jdO9vLE iNgINarq1ff1qcTeOWbwVwASi1psIpxxeDfSU8Q5PhVlIrALmGRNEry2V/xqgPmqMDmq kIEw== X-Gm-Message-State: AAQBX9f2NLeIuStz5f4WRyTWfYYkd57YxYUFapoosC7MI/WpYE5oFu1Y 9nHT5NsxQZaFkWEzwhGOBfJpPWcoDDc= X-Received: by 2002:a2e:3313:0:b0:2aa:3bd0:59fa with SMTP id d19-20020a2e3313000000b002aa3bd059famr3418455ljc.12.1682400242183; Mon, 24 Apr 2023 22:24:02 -0700 (PDT) Received: from [192.168.1.111] (62-78-225-252.bb.dnainternet.fi. [62.78.225.252]) by smtp.gmail.com with ESMTPSA id l26-20020a2e3e1a000000b002a8c7bd0798sm1965518lja.86.2023.04.24.22.24.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 24 Apr 2023 22:24:01 -0700 (PDT) Message-ID: <47998ed8-5160-69dd-1767-e1746971a9b9@gmail.com> Date: Tue, 25 Apr 2023 08:24:01 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Content-Language: en-US, en-GB To: Andy Shevchenko Cc: Matti Vaittinen , Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Zhigang Shi , Shreeya Patel , Paul Gazzillo , Dmitry Osipenko , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: From: Matti Vaittinen Subject: Re: [PATCH v2 4/5] iio: light: ROHM BU27008 color sensor In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/24/23 18:22, Andy Shevchenko wrote: > On Mon, Apr 24, 2023 at 04:10:09PM +0300, Matti Vaittinen wrote: >> The ROHM BU27008 is a sensor with 5 photodiodes (red, green, blue, clear >> and IR) with four configurable channels. Red and green being always >> available and two out of the rest three (blue, clear, IR) can be >> selected to be simultaneously measured. Typical application is adjusting >> LCD backlight of TVs, mobile phones and tablet PCs. >> >> Add initial support for the ROHM BU27008 color sensor. >> - raw_read() of RGB and clear channels >> - triggered buffer w/ DRDY interrtupt > > ... > > This... > >> +#include > > ...is guaranteed to be included by this. > >> +#include Out of the curiosity - do we have a rule and rationale for explicitly including headers with 'stuff' we use Vs. trusting some header being included by another one? I've not thought much of this so I don't know if there are any pros/cons? > ... > >> +static const struct of_device_id bu27008_of_match[] = { >> + { .compatible = "rohm,bu27008", }, > > Inner comma is not necessary to have. Thanks. Yours, -- Matti -- Matti Vaittinen Linux kernel developer at ROHM Semiconductors Oulu Finland ~~ When things go utterly wrong vim users can always type :help! ~~