Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp877184pxb; Sun, 21 Feb 2021 03:32:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJxo/OF8uq77sNAMP9Xb0Ke4NidktYRECpXjwP+KDM7tMcfmn2ifqZcqcUdUdzEDr5EPPBBY X-Received: by 2002:a17:906:115a:: with SMTP id i26mr11573360eja.10.1613907127713; Sun, 21 Feb 2021 03:32:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613907127; cv=none; d=google.com; s=arc-20160816; b=ehsuWdF026yXYGvr55nsjMSU7U8Wf6adKbJQCC/dxZ/YBYLwNcrq82pKfKAM/NdWKL MU2ldrhCKMHG+4cCqnhxP67cmFw8UUneKMQwkvln1LDBmcxJjKbiwrw4bkJcWkOV4ltb gHvOugBcvA9Bs8lFTtteiSUHlmIcszC2To78BLizCm1hvZM6ongxSISl6j1YsLle2vau 9K2RMcEaOBmVUopRW02QhvDsJw9U6GIWGZij/8bv/fpuXHadaWIksonQg2G+GRsBxL17 AKX8B2n68DPdKkHm9E6M2pNf7yE65E3kAJWvd978xKDHJijoCHk6FVu8auNfbBoJxiWK rHwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=XailET+Iz0kS61iHBGbLnnT1v04j2RILsJcsZVq8qik=; b=dHXJGZTymfgyPgQIV6RkOBenjR4SlZELnWP4odLtJ8JaUzSPZdH3Ck7VB9Vn8CqCAO MSmBAeEYAa7Y4z9SS65PzCiqzT5J1gAoTVZu03FfiWJ0VuMCuytYCa9Hf3/W39DtVqCy amoC2SwSnauoAjWMYIFRIUZmhQQIZjy5cyW310MOBaS7WRPdDueiXDWcKjkrLL2mEApD /uX0pFbHOXjYPkCDcgjZjwrgwxwUL/TS5eF5xRdU0uRsA1WbdbLXalQ3/dKwbIgEfIb5 tKP+RxK2hPqRIZ7UblaDbZnlxLHlAg6zsn6xyrM86SErYo7CPMbcnHmX7f5p0/fjFcYX pSGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="lh/3mdQ+"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id y7si8018394ejm.72.2021.02.21.03.31.44; Sun, 21 Feb 2021 03:32:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="lh/3mdQ+"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S229905AbhBUL3C (ORCPT + 99 others); Sun, 21 Feb 2021 06:29:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229540AbhBUL3A (ORCPT ); Sun, 21 Feb 2021 06:29:00 -0500 Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23C99C061574; Sun, 21 Feb 2021 03:28:20 -0800 (PST) Received: by mail-lj1-x22b.google.com with SMTP id u4so1178757lja.3; Sun, 21 Feb 2021 03:28:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=XailET+Iz0kS61iHBGbLnnT1v04j2RILsJcsZVq8qik=; b=lh/3mdQ+xAZKSuK5gv22xNPa6GEkldcs0lgL5hVKw0TgzXphO7b2Fu6fUZrprxNk7H H/zP2VmHVFQkLwyy3T30wksKBWug+vwowuGfAateyeM+RpoJrH6TjD7WNyDxLGip3bAc lNvYfSR92evbcGDK3SiWwwsypGyU+7Dbk2gp60tJx5fUMJAAQoky26xlpq0YiiXLcseq V/hBgDuxM5bih1GG6nyvhtdKSTXDgRuQw7QSJXi1AFQ7zNx1/SeySh19Ujz9rZg8Bqzb brDdYuSEYnSZ90eeNZHWIA1IxWpc5SGuu0inRmdcj0k3WG3pIwX0Bj8nyt/hl5cPrp0L /X3A== 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=XailET+Iz0kS61iHBGbLnnT1v04j2RILsJcsZVq8qik=; b=JrH22rABg50wKykm2/aQOVthDsYAHKUev/1Fh5OseYx6QayOY02sfEs6NDfwkxC+S8 bLU9n98x//Idw4Lf3k67yA/oL5IJSe3TiBXAy2We/s/pMoMeL//nHR5zUSk/0iJo3W8o kyUBycikllEFYc6Z8y609Ii//AUIqeMgGhsIQAkep3fC/r8r45qFrCtF05E46BZb+XBW DjTiceZNJBM19jY/lcUNrKdc8y7BB8Mi7fMbJxyik5EK3Zb98OuGVDzm1yK262nekW1I jhPDPnJ/njTI1mjR9/wnunmSXv8mFiDGSYESPZ3ddC8gru4waEKkeolNJX5ldInqjTWG bk1Q== X-Gm-Message-State: AOAM530FtvJmV/98SluCuX0DJKvXKclHY6qe1QUKri5q2lQuGyFXzz3Q E4Yi5iZy7sEIZeXQDveWz04= X-Received: by 2002:a05:6512:11d1:: with SMTP id h17mr10792421lfr.116.1613906898546; Sun, 21 Feb 2021 03:28:18 -0800 (PST) Received: from [192.168.0.131] ([194.183.54.57]) by smtp.gmail.com with ESMTPSA id g24sm273950ljl.122.2021.02.21.03.28.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 21 Feb 2021 03:28:18 -0800 (PST) Subject: Re: [PATCH v2 2/4] leds: Add driver for QCOM SPMI Flash LEDs To: Pavel Machek Cc: =?UTF-8?B?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= , Dan Murphy , Bjorn Andersson , Andy Gross , Rob Herring , linux-leds@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Brian Masney , Luca Weiss , Russell King , Georgi Djakov , linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, lkcamp@lists.libreplanetbr.org, andrealmeid@collabora.com References: <20210126140240.1517044-1-nfraprado@protonmail.com> <20210126140240.1517044-3-nfraprado@protonmail.com> <20210219110227.GG19207@duo.ucw.cz> From: Jacek Anaszewski Message-ID: <7bb757c7-55af-66a4-aa12-fe646a19fcf6@gmail.com> Date: Sun, 21 Feb 2021 12:28:16 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: <20210219110227.GG19207@duo.ucw.cz> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/19/21 12:02 PM, Pavel Machek wrote: > Hi! > >>> + */ >>> + >>> +#include >>> +#include >>> +#include >>> +#include >>> +#include >>> +#include >>> +#include >>> +#include >>> +#include >>> +#include >>> +#include >>> +#include >>> +#include >>> +#include >> >> Please sort includes alphabetically. > > No need to do that. Keeping the includes sorted eliminates the risk of introducing duplicates and allows for faster lookup. What gain is in having them unsorted? >>> +#define FLASH_SAFETY_TIMER 0x40 >> >> Namespacing prefix is needed for macros, e.g. QCOM_FLASH*. > > No need for that in .c files. In general it eliminates the risk of name clash with other subsystems headers. And actually the prefix here should be QCOM_LED_FLASH to avoid ambiguity with flash memory. If you dropped the vendor prefix then you'd get possible name clash with led-class-flash.h namespace prefix. -- Best regards, Jacek Anaszewski