Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp498590imm; Fri, 10 Aug 2018 15:37:28 -0700 (PDT) X-Google-Smtp-Source: AA+uWPz5B4wqWWrPkezu60HnEbG6Lus9WYwFSQ+jinyn2vgMvTeFyK24OQrkxIUr0TXcOIL5G3Ia X-Received: by 2002:a63:2b89:: with SMTP id r131-v6mr7956507pgr.39.1533940648431; Fri, 10 Aug 2018 15:37:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533940648; cv=none; d=google.com; s=arc-20160816; b=tKJO3PAE9TSV6yn/zT81nXpyERvzvR02W6Aqa4zhHdqOp5IVui+6h6FmbaB1TPDVzs utrYhpIJSx8CiKTUSihe94/6qiYZ8+dhDOaQuR6yrWaiLvWalFowc2oObs8JXSwgFpLN 3o594b149cqaVvIOerdx1R6JaViycvQ1Nsr5Y6s0ZuqDihiOVX59w7w4FYxj859Xmkks Xr2cc0NUDZ1q9hM/uB3l1hJA2cOihk/XLkcOEUGz3ZxdYbSjGvGXIpdBygYwytBGFytc GxCguMM/Ts+zFys+0nLeJCfdh30lEEfelSkVFKlW12zhApFN0ij6jQeYLZrIBzact9ef xlww== 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:dmarc-filter :dkim-signature:dkim-signature:arc-authentication-results; bh=CpC5VK4POSpKNqAk30putm9qsUJYNNjkeO81aIkGz9o=; b=ZRaMm9F7VW+x2Ka0iqzbCLcsoIE+g87LKGH4fxqGUGBqOggpxYlfmUS4x9vK1ClQ10 7rQzF9jOBU4XeNttcjP1faVOQGgj9jVmWDWIVyqc02dOnnoWWUQJg2QO/g14DQbCYQ7w ez5hIgKthc0HM6tQ/yPqIY1tqLpWnYho4gCK63MUTCGOezf13cKRi38lgpJN0SyhMDlf FYAZCUKUjK3pfA5pmQrNBmINMq/iB0JcK8JYXRXt4JUawd8zZdFD8b/BCDYlnGbf9WFu bvlj+ceKEn8a9zZpOefaHVb2KN+zTHqVSFoR9ZNPmCE+ZE8KKUILHvliU6to+tKDnqa2 VF1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=BZUOW2Xy; dkim=pass header.i=@codeaurora.org header.s=default header.b=BZUOW2Xy; 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 z72-v6si10125408pgd.646.2018.08.10.15.37.12; Fri, 10 Aug 2018 15:37:28 -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=@codeaurora.org header.s=default header.b=BZUOW2Xy; dkim=pass header.i=@codeaurora.org header.s=default header.b=BZUOW2Xy; 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 S1727316AbeHKBH5 (ORCPT + 99 others); Fri, 10 Aug 2018 21:07:57 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:50606 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727268AbeHKBH4 (ORCPT ); Fri, 10 Aug 2018 21:07:56 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id E5EF9608C9; Fri, 10 Aug 2018 22:36:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1533940566; bh=KvR5brmnokALBS/5cSlHCc5UOL4IVl4bHlLklvpz3N0=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=BZUOW2Xy8RDlR/cjJhKYvkBvCErkcnL1RI6y98PZp3ud1AGgn9ILxLaLP9oEe76pP AvbgBLJCe0kNTZKvCcM8PW85bzO0IVaYVthPpy6hi69mOxJA/fnrx8RVdIvOOAwBKB VzapRF/OoFSZxQ7882wPMBVNFF2lVQmcf/y6miQE= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from [10.46.160.165] (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: collinsd@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 1DFA86085F; Fri, 10 Aug 2018 22:36:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1533940566; bh=KvR5brmnokALBS/5cSlHCc5UOL4IVl4bHlLklvpz3N0=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=BZUOW2Xy8RDlR/cjJhKYvkBvCErkcnL1RI6y98PZp3ud1AGgn9ILxLaLP9oEe76pP AvbgBLJCe0kNTZKvCcM8PW85bzO0IVaYVthPpy6hi69mOxJA/fnrx8RVdIvOOAwBKB VzapRF/OoFSZxQ7882wPMBVNFF2lVQmcf/y6miQE= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 1DFA86085F Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=collinsd@codeaurora.org Subject: Re: [PATCH] regulator: qcom-rpmh: Add stylistic breaks in the default cases To: Douglas Anderson , broonie@kernel.org Cc: linux-arm-msm@vger.kernel.org, Liam Girdwood , linux-kernel@vger.kernel.org References: <20180810200531.88409-1-dianders@chromium.org> From: David Collins Message-ID: <03a6c012-2dac-8d2f-e8ff-7d4734935532@codeaurora.org> Date: Fri, 10 Aug 2018 15:36:05 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: <20180810200531.88409-1-dianders@chromium.org> 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 08/10/2018 01:05 PM, Douglas Anderson wrote: > No functional change here but it can make the code more readable to > have breaks in the "default" case even though it's the last case. > Let's add them. > > Signed-off-by: Douglas Anderson > --- > > drivers/regulator/qcom-rpmh-regulator.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/regulator/qcom-rpmh-regulator.c b/drivers/regulator/qcom-rpmh-regulator.c > index 9f27daebd8c8..b8434e521d72 100644 > --- a/drivers/regulator/qcom-rpmh-regulator.c > +++ b/drivers/regulator/qcom-rpmh-regulator.c > @@ -504,6 +504,7 @@ static unsigned int rpmh_regulator_pmic4_ldo_of_map_mode(unsigned int rpmh_mode) > break; > default: > mode = REGULATOR_MODE_INVALID; > + break; > } > > return mode; > @@ -537,6 +538,7 @@ rpmh_regulator_pmic4_smps_of_map_mode(unsigned int rpmh_mode) > break; > default: > mode = REGULATOR_MODE_INVALID; > + break; > } > > return mode; > @@ -566,6 +568,7 @@ static unsigned int rpmh_regulator_pmic4_bob_of_map_mode(unsigned int rpmh_mode) > break; > default: > mode = REGULATOR_MODE_INVALID; > + break; > } > > return mode; Reviewed-by: David Collins -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project