From patchwork Thu Apr 6 17:18:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Ciocaltea X-Patchwork-Id: 80358 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1184819vqo; Thu, 6 Apr 2023 10:20:12 -0700 (PDT) X-Google-Smtp-Source: AKy350a5biqqtnqqQUYYbfAwDQlh8UUq0tRvx4zUDR1Pkk/lZIkTM4Ru+XeBZjzuSc16PKguourZ X-Received: by 2002:aa7:d518:0:b0:4c0:9bd7:54cc with SMTP id y24-20020aa7d518000000b004c09bd754ccmr309985edq.11.1680801612414; Thu, 06 Apr 2023 10:20:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680801612; cv=none; d=google.com; s=arc-20160816; b=DxjE5GCiuA+i2J0ZSFQ8KxqEDOPcargBCvLJt0MwDje7pTLpMNoRc1+DVSdYr/Ogiw yu9hshzXWrgSifuFTWyKJu/tRAAgzIGpp8Bp7QaWpnfKu1w39/utn0GNoOh3kOK1DPkI 9qr5oiv4I0Nooyfubq+KMbaxcs02zPzBm9R2JBg76dKeAiwOTsiLaiiwL37VP/nvPXH4 tNIT3EAg/4sW8bI2WZE+pEyOgm7aXA/LxiQWC/vEBJjBxPKnpnfrAYzADc7jCdOvUzYW O/OjDBuycBfRzstldBe0SSZQrc61g4iRc3V+RAmHq8Oygl5b5GBRrMuatAVw2fiJ4yga uElg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ZTkIHTAaWcmCAdfh8LEoseDgXTgaeNEHoaGgbbSmg1w=; b=gvoNz9YLzchcO7MNJuLiP3WYEOC9aoeCb0gTUI+khOpy99W2dCDy9KNUzYTx7YA+vs x+iRcUuIB66OKuvG4x/zU5b7ipmtBHdtRtzderJLS9pmZL8BChKNiFfuoTnDOrEjI43c mmzFY2AnwZd/6bulKd523Hqh2prbzrPNA43uYcf7icofMAKvjmUYoP0vO6qq//XebzJz +yV2RNDV6EYId5+7QZ1nPwUyEnWgLv+3WxL98EKN0SrWRUNX9NtBJvaMiCtiKLZ99M4D ebQ1ysdTBoIx/QPo3ltCM1YYi+d6n4FRKMqr08T34idehtvnqyBMixY6wU3LNiZFWTSF EzKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=YKxZ5geP; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n26-20020a170906379a00b00930371d2698si1406977ejc.894.2023.04.06.10.19.25; Thu, 06 Apr 2023 10:20:12 -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=@collabora.com header.s=mail header.b=YKxZ5geP; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239471AbjDFRSW (ORCPT + 99 others); Thu, 6 Apr 2023 13:18:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239398AbjDFRST (ORCPT ); Thu, 6 Apr 2023 13:18:19 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C91475FDB; Thu, 6 Apr 2023 10:18:18 -0700 (PDT) Received: from localhost (unknown [188.27.34.213]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: cristicc) by madras.collabora.co.uk (Postfix) with ESMTPSA id 7F8FA66031CD; Thu, 6 Apr 2023 18:18:17 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1680801497; bh=DMsss3S5xTQ3vBQF9dvbUFqzefuTEWVYo2dfHUqUcKc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YKxZ5gePb8ndrxeBAkwjljaCvho1N/q1cGnl0K8S3BGELL+AogCDIBNFCTraV/uCa bAKwXnbQOLCOBaSkxu8c/FwdNbSqGbfNlBISL8NLY07kO3BJFvkSCmwC1WLySv+COK +IlyYip6sdlbck++XR6XW0Us24VsTjE/87lTAMu43+06598O1bMEfMtyaOo54JE5qr ixGwWdXp8h5Hb6pRwCnSTIkITost+V272zVADSgAkMDipyEbk9V712ZsIToh3tS22z tb9zwo498HchQ3nI6YDakzIOsl199xUNfkIXYVFXjvdInxoHNBK+vOAtSYXXkR4DZ6 yh2seXxBq6bWQ== From: Cristian Ciocaltea To: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Heiko Stuebner , Bjorn Andersson , Joseph Chen , Ezequiel Garcia Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, kernel@collabora.com Subject: [PATCH v2 2/8] regulator: fan53555: Explicitly include bits header Date: Thu, 6 Apr 2023 20:18:00 +0300 Message-Id: <20230406171806.948290-3-cristian.ciocaltea@collabora.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230406171806.948290-1-cristian.ciocaltea@collabora.com> References: <20230406171806.948290-1-cristian.ciocaltea@collabora.com> MIME-Version: 1.0 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762448231606958441?= X-GMAIL-MSGID: =?utf-8?q?1762448231606958441?= Since commit f2a9eb975ab2 ("regulator: fan53555: Add support for FAN53526") the driver makes use of the BIT() macro, but relies on the bits header being implicitly included. Explicitly pull the header in to avoid potential build failures in some configurations. While here, reorder include directives alphabetically. Fixes: f2a9eb975ab2 ("regulator: fan53555: Add support for FAN53526") Signed-off-by: Cristian Ciocaltea --- drivers/regulator/fan53555.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/regulator/fan53555.c b/drivers/regulator/fan53555.c index d0c678767294..0754c370a21c 100644 --- a/drivers/regulator/fan53555.c +++ b/drivers/regulator/fan53555.c @@ -8,18 +8,19 @@ // Copyright (c) 2012 Marvell Technology Ltd. // Yunfan Zhang +#include +#include +#include #include +#include #include -#include #include +#include #include +#include #include #include -#include -#include #include -#include -#include /* Voltage setting */ #define FAN53555_VSEL0 0x00