Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp5603108pxb; Mon, 28 Mar 2022 14:50:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyn3MWDdxqNEBwyxr2kHhnBXuXvcM6wIl/5bDShhDepUduVtSbMoEdPJMAt2f4ezahEAAG7 X-Received: by 2002:a05:6122:683:b0:343:169d:f7cd with SMTP id n3-20020a056122068300b00343169df7cdmr6861776vkq.7.1648504233005; Mon, 28 Mar 2022 14:50:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648504233; cv=none; d=google.com; s=arc-20160816; b=ccPb5mby1Euw9dPGQwoOqBgX1lYXR/b9nnE9km0FCZdwhZKo7NiEnI4wwmv/D7Aq9V 1JetDWmdbQLE9bmB5Fa4RcpCYJ21arYaiKbKxP5yjSwrUmNfGdhCzuhA2U2vRLcP7s+d qejkrFIAjlSlBYyjrOImbsjI/bq9omuMOo4Qb8Yq7B3O8ABJjN1Bsw4vZWyk57NipXRT uahTdFCH7+4a8kMZjcefCrtVeFJRgw23iBvX1iw213MXKMJ3hPFQKWn057THKoANZ42M 7XuRDQG5SqW4hIXdO8LtFLdWLpyTzlZa6C2d1pH3h6+3wCwLGtwlsOGVqzbvq1JVzoq6 pFiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date; bh=vMk1ao2Qn+SBZnUILUwUOiZ2/NXW6TDMKldy/veowR4=; b=XauzQNCtBZRmktCV8xYPUsaHkqF5ILRccXXl+rtQkeNK30V6dYZvmg0uhkbz/V2NVS ahKHN6daqNOV0eJY5UdOWhC3qXyTqe7ouwWDGNzqt24oPRVHDmfj3P1Yko0PGTss8LX9 6SNmr2204vO2KSeyn9cQfy5rGtAf0VK4SVJ6FJ3PjbRutRn7hxXYLMqdbFXi52+UDk1n 16fFVHlrsP02iIMUdOVWmQ+fyMGIIp44AceLXbcgdv6BsDse5lHhl5aR25YSRA0f5D6D T+X4T1fzlKJk/leg22A58IssfzZAm173Ay2ARVbtzI7HiU7pKjEL938+j3axE8e6mFdr VB9Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id o16-20020a1f4110000000b0033e831701a3si3171725vka.13.2022.03.28.14.50.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Mar 2022 14:50:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1280712F154; Mon, 28 Mar 2022 14:22:06 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244177AbiC1PG4 (ORCPT + 99 others); Mon, 28 Mar 2022 11:06:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240427AbiC1PGz (ORCPT ); Mon, 28 Mar 2022 11:06:55 -0400 Received: from mail.thepaulodoom.com (www.thepaulodoom.com [45.77.108.202]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7EFBF42493 for ; Mon, 28 Mar 2022 08:05:13 -0700 (PDT) Received: from hp-amd-paul (c-98-240-189-147.hsd1.mn.comcast.net [98.240.189.147]) by vultr.guest (OpenSMTPD) with ESMTPSA id 4453a9ce (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Mon, 28 Mar 2022 15:05:11 +0000 (UTC) Date: Mon, 28 Mar 2022 10:05:08 -0500 From: Paul Lemmermann To: jic23@kernel.org Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] IIO: accel: fixed coding style issues Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Fixed case statement issues and spacing issues. Signed-off-by: Paul Lemmermann --- drivers/iio/accel/bmc150-accel-core.c | 15 +++++++++++---- drivers/iio/accel/dmard09.c | 2 +- drivers/iio/accel/kxsd9-spi.c | 4 ++-- 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/drivers/iio/accel/bmc150-accel-core.c b/drivers/iio/accel/bmc150-accel-core.c index d11f66801..f7dd7ec2c 100644 --- a/drivers/iio/accel/bmc150-accel-core.c +++ b/drivers/iio/accel/bmc150-accel-core.c @@ -432,10 +432,17 @@ static bool bmc150_apply_bosc0200_acpi_orientation(struct device *dev, for (j = 0; j < 3; j++) { switch (val[j]) { - case -1: str = "-1"; break; - case 0: str = "0"; break; - case 1: str = "1"; break; - default: goto unknown_format; + case -1: + str = "-1"; + break; + case 0: + str = "0"; + break; + case 1: + str = "1"; + break; + default: + goto unknown_format; } orientation->rotation[i * 3 + j] = str; } diff --git a/drivers/iio/accel/dmard09.c b/drivers/iio/accel/dmard09.c index e6e28c964..87bc38d4d 100644 --- a/drivers/iio/accel/dmard09.c +++ b/drivers/iio/accel/dmard09.c @@ -24,7 +24,7 @@ #define DMARD09_AXIS_Y 1 #define DMARD09_AXIS_Z 2 #define DMARD09_AXIS_X_OFFSET ((DMARD09_AXIS_X + 1) * 2) -#define DMARD09_AXIS_Y_OFFSET ((DMARD09_AXIS_Y + 1 )* 2) +#define DMARD09_AXIS_Y_OFFSET ((DMARD09_AXIS_Y + 1) * 2) #define DMARD09_AXIS_Z_OFFSET ((DMARD09_AXIS_Z + 1) * 2) struct dmard09_data { diff --git a/drivers/iio/accel/kxsd9-spi.c b/drivers/iio/accel/kxsd9-spi.c index 57c451cfb..989f53fb0 100644 --- a/drivers/iio/accel/kxsd9-spi.c +++ b/drivers/iio/accel/kxsd9-spi.c @@ -44,8 +44,8 @@ static const struct spi_device_id kxsd9_spi_id[] = { MODULE_DEVICE_TABLE(spi, kxsd9_spi_id); static const struct of_device_id kxsd9_of_match[] = { - { .compatible = "kionix,kxsd9" }, - { }, + { .compatible = "kionix,kxsd9" }, + { }, }; MODULE_DEVICE_TABLE(of, kxsd9_of_match); -- 2.35.1