From patchwork Mon Jul 16 13:32:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Niklas Cassel X-Patchwork-Id: 10526795 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 973DF60348 for ; Mon, 16 Jul 2018 13:33:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8841D28761 for ; Mon, 16 Jul 2018 13:33:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7AFBB28775; Mon, 16 Jul 2018 13:33:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1A12728761 for ; Mon, 16 Jul 2018 13:33:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727265AbeGPOA4 (ORCPT ); Mon, 16 Jul 2018 10:00:56 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:47071 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727246AbeGPOA4 (ORCPT ); Mon, 16 Jul 2018 10:00:56 -0400 Received: by mail-lf0-f68.google.com with SMTP id l16-v6so32250064lfc.13 for ; Mon, 16 Jul 2018 06:33:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Ix+yxRd1GRySziQI95ggQSolzs26/X4BBwZ7n6ggkqI=; b=b7AtPHHnqoN/2MvAJGc6aoUdvnRV0FyssAiCvHKQL1w4G8YwDSbWnM2VxRUJON4/ep OSJvM7ISTscDJmp0s4BRhUnjfgSWccUoCgWyAxItZB0CHB6NyYy6plISIsCwJASrzjmc /bGlDa64NmdMe7Z1q2Hnn5jFQz1meOM6hw3pY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Ix+yxRd1GRySziQI95ggQSolzs26/X4BBwZ7n6ggkqI=; b=g3Y6VIIAQBDZCXFhnBpuRGjYyvZyVBB5Hp0yLSOaqbbylAUI0XWOLJK18t50MLgPNL KDS19TBc3fHbBAc7s+kGyniSSnU7ZOhw4j5wZANhA8Dbr72+zQflW7VaT02wyyH21MRm AjbVRraes4NT9o370t+SLcs3Wsjn2zg7LUvHk0VadJ2sCQA+tzCgpReqPmLhzSEOg/vb xvj1jEa126MzrDHc0sMDSaTr7atQzfF6GO1NcI3UEGtlXCwrRVk2yfgpTlgA/HBFWgZN jkqOfY8WZsut9J2vGkpypNKNl1scLGZaoCCelvMcDnfMfmSk80g7NRXGfJ45wGaiQxb4 jHUA== X-Gm-Message-State: AOUpUlH5uOSk/eVZwyrAUKo0VGUOceHKiP3INZhfaiwjtRnB3dHKzxyC mbK/bOSWT6iKKO/Dl6KKWbKnBg== X-Google-Smtp-Source: AAOMgpdXfb0d8GiXEgYBBGTUdENh7LtAqQbnormrT0WvKmZjsDpI8nB6o9IX6OGATQu8BoOIkA8kPg== X-Received: by 2002:a19:385a:: with SMTP id d26-v6mr12121389lfj.47.1531748006344; Mon, 16 Jul 2018 06:33:26 -0700 (PDT) Received: from centauri.lan (h-229-118.A785.priv.bahnhof.se. [5.150.229.118]) by smtp.gmail.com with ESMTPSA id x3-v6sm4915998ljb.25.2018.07.16.06.33.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 16 Jul 2018 06:33:25 -0700 (PDT) From: Niklas Cassel To: broonie@kernel.org, Liam Girdwood Cc: linux-arm-msm@vger.kernel.org, johan@kernel.org, Niklas Cassel , linux-kernel@vger.kernel.org Subject: [PATCH v2 3/4] regulator: qcom_spmi: Do not initialise static to NULL Date: Mon, 16 Jul 2018 15:32:53 +0200 Message-Id: <20180716133255.1506-4-niklas.cassel@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180716133255.1506-1-niklas.cassel@linaro.org> References: <20180716133255.1506-1-niklas.cassel@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fix the following checkpatch error: ERROR: do not initialise statics to NULL +static struct regmap *saw_regmap = NULL; Fixes: 0caecaa87202 ("regulator: qcom_spmi: Add support for SAW") Signed-off-by: Niklas Cassel --- drivers/regulator/qcom_spmi-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/qcom_spmi-regulator.c b/drivers/regulator/qcom_spmi-regulator.c index ba3d5e63ada6..5246f5b870c2 100644 --- a/drivers/regulator/qcom_spmi-regulator.c +++ b/drivers/regulator/qcom_spmi-regulator.c @@ -1060,7 +1060,7 @@ static irqreturn_t spmi_regulator_vs_ocp_isr(int irq, void *data) #define SAW3_AVS_CTL_TGGL_MASK 0x8000000 #define SAW3_AVS_CTL_CLEAR_MASK 0x7efc00 -static struct regmap *saw_regmap = NULL; +static struct regmap *saw_regmap; static void spmi_saw_set_vdd(void *data) {