Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp3893904rwp; Sat, 15 Jul 2023 11:33:32 -0700 (PDT) X-Google-Smtp-Source: APBJJlEJlQrkVS7MMVOTa1Qve+GnJFjO4qtoBlYVbfEP6339Clezasy9OqjUmhz4734UV11YgqRX X-Received: by 2002:a05:6a20:4312:b0:111:77cf:96dd with SMTP id h18-20020a056a20431200b0011177cf96ddmr2478783pzk.5.1689446011921; Sat, 15 Jul 2023 11:33:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689446011; cv=none; d=google.com; s=arc-20160816; b=wrTWC3NiOTQso1t4IeRgPgWAeIbdBFTZt8GA0e3WhnuquNZZj1A2N2k52o8Ic/Elif ecponInw/2ZA34PMMDUGKxSrDgcE8uVpCjlLBiBMODxqimbH2wi/TaGAD7j2aza/RJjl XHoB8RgYzzOdheuhqYtnvOoh1P6MAinOKR+JvFmUMp9SMdt416iZjFIWFYu8SzNlHW9k XXDh1ZMNBG78TCsIi1Scj23boLny3IM4ZS7CuKWJdnqReF+3O78ajpc56p0CPasJTB4v Al7oSA2ws2t6lejKnMiKbezbKzrsdlkEuScxfxmrgGhZAolRx+SljKOZqna5XoSQuoI0 iSag== 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:subject:cc:to:from:date :dkim-signature; bh=X8p0McrzCjBru61jCMBZObWi2DWdj2AcL0GmWhQYZSw=; fh=ptNXV4H/yUKM0EiDRGrvR6c4Zkfbw8Yj2CtsZpUbvTw=; b=TOHlDjo66aG4CI6Xj8M5kY2AmtG7ZD+4EkpBi0mvL5qD6rSOZTdDAo1Jc0EsT3kGeM oAxnIB44zLdpgs6by65YocCfUTkN6JTBlvr03dikwv2Uv3JbH6XXEjvI5kfJWLBvEW/Q Vu98WgxRok7FBwOQwndX3TbQwCAPR+Ho1McudWE2xufFRSu+1hLaX63mojsHAOT04J4s CkeG0Hshi9elXao4NVqXPQx0NMUDPYmMsmHhnk3h5RSYcK4hx7U8TQYZqFcvG9upc0RV bc7OPob52fv0jyWWRo6FBv2MjhK+vU0eCVPBW3DZt9AO23Ncyh7stPXyOtPUsCxHzicb oLKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YT4fzAdM; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u2-20020a631402000000b00553d7157e83si4596165pgl.134.2023.07.15.11.33.19; Sat, 15 Jul 2023 11:33:31 -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=@kernel.org header.s=k20201202 header.b=YT4fzAdM; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230051AbjGORfZ (ORCPT + 99 others); Sat, 15 Jul 2023 13:35:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229549AbjGORfX (ORCPT ); Sat, 15 Jul 2023 13:35:23 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D365172C; Sat, 15 Jul 2023 10:35:23 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A0EE960BD6; Sat, 15 Jul 2023 17:35:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CE8E0C433C8; Sat, 15 Jul 2023 17:35:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689442522; bh=oawNHOu6cEn/o8yHbi2Ylqw7LxrIWJEIsGhh23eVmII=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=YT4fzAdMOWprMWZIVOz97OS+Wa7N2wEak7qCKwnAzLRT/3EtP09nnCT9cTcMOs56B 9I/7FGLw7lEwwql7W3FrP2un/jI3t5dO/tnWry0oONO9EoLvVuux95g4YXcAlGLkpy /8TvsR4x74NmA+OEkFHDyLaA1lNqKgs0jaASXNJo3ZcyF2qzpP+1cncFWx4o7SJ59x 5iGKC+SADuegKU9s9VvfPZXMHxO7dKqvvtkIKy7od6aZn3dm7+mKC4+shryCNDStms iRpFkWShtmiiYKHfokJn3jOBko7m9V/lwG/CX71tf3gulZGeiSD3U02ToY0lhDtDLA 6Vk62nR/eM5Dw== Date: Sat, 15 Jul 2023 18:35:15 +0100 From: Jonathan Cameron To: Alejandro Tafalla Cc: Lorenzo Bianconi , Lars-Peter Clausen , Jonathan Cameron , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] iio: imu: lsm6dsx: Fix mount matrix retrieval Message-ID: <20230715183515.56deaa1d@jic23-huawei> In-Reply-To: <20230714153132.27265-1-atafalla@dnyon.com> References: <20230714153132.27265-1-atafalla@dnyon.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Fri, 14 Jul 2023 17:31:26 +0200 Alejandro Tafalla wrote: > The function lsm6dsx_get_acpi_mount_matrix should return an error when ACPI > support is not enabled to allow executing iio_read_mount_matrix in the > probe function. > > Fixes: dc3d25f22b88 ("iio: imu: lsm6dsx: Add ACPI mount matrix retrieval") > I can fix it up whilst applying if no other issues, but there must not be a blank line here. All tags need to be in a single block for some tooling that is used with the kernel tree (and some of the checking scripts warn about this so it won't get applied with the blank line here). > Signed-off-by: Alejandro Tafalla > --- > Changes in v3: > - Removed unneeded check for err == -EOPNOTSUPP. > > Changes in v2: > - Use of error codes instead of true/false > > drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c b/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c > index 6a18b363cf73..b6e6b1df8a61 100644 > --- a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c > +++ b/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c > @@ -2687,7 +2687,7 @@ static int lsm6dsx_get_acpi_mount_matrix(struct device *dev, > static int lsm6dsx_get_acpi_mount_matrix(struct device *dev, > struct iio_mount_matrix *orientation) > { > - return false; > + return -EOPNOTSUPP; > } > > #endif