Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp42863lqh; Fri, 3 May 2024 12:45:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWcvAqCEXNA6fL2zmZqQ7Qg+yzD4V25wzKi8Z8CQBXyL4aK7JjzUWKGgrAZvD2rLixHfcuM8AVXWrVUzoscxitW3NHZLt4LSVrGKaSdCA== X-Google-Smtp-Source: AGHT+IGq3WeXTsykzYrV0A4eCshDuaZuc+ZZ3TgPiD7dGFLG8A9PDge3ChIr8zBYxPwA08MbC5xm X-Received: by 2002:a05:620a:47b4:b0:790:ad29:c377 with SMTP id dt52-20020a05620a47b400b00790ad29c377mr3249608qkb.31.1714765531201; Fri, 03 May 2024 12:45:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714765531; cv=pass; d=google.com; s=arc-20160816; b=Qg6Pr5Z45RhKZsRQu7WzGBoc9sG0JSuLWBHMg2e+ISNvs3sbZVeZTw6w8CT5+qF9Sg v6K/uMSQWoH3dCz9/PhAGEVu4KGYrH9QOQ/jkyx6gc9yIEHhwx7NQ2BORJbOFL3JMNm/ Bu3FUidyDDdPgmGHoVDP1GGC2AKmAwrDzO7bkbycwpbqK/3wCpBM+zOBB39I4m8urg/r 5tHULi/Kpukui7HhwhjJrtUb1lNRFoOixGc21vfH13B7WyHSk5oZcEBLjsjkpDFKplxs 2VSqRIpiKycgzS0aNLJQFLtgBQgMobXX5s7h3P0N3psA6Ep/kqQPWl3bvdmfssHHO1/X Gybw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=6FFzQiTw1LygBBk9VXhXQOHEICb9VgUAjrTiljBLyRY=; fh=nUWqviG7ZWTaHXkIEokTU/iWBnqdmQ3ollpPIh+/OV0=; b=jhTPYVnbkK1iODXAyhqwiNcMTVfakTLm2US4YWaFw8k16cyH5nD3a5LiPGdkLEyWDj JZ3+Aj7DV05jQgm+P5irWWkgrrVbzlDq4+WUYq1BFCqnMCnaiQvm42XjA/twmhJew8rG CbspijEXc3mg2tmL+EtoTfWhToYGbK7VBcdluotFuGywR4pUdsxea1CQG1xz2kGn4XpT lFBOgENXR3bnzz9IK5s8GDyHm3YhQeU0un53U6BqMfv83s7rou52iJnKSpHE0YBHECor QFPlS3hVHGgtNzvFSs4rg6E5KzNqeWmt8EKEvplyop7M5PoSpvoCnsI1ENHWZv3dwBAL IRXA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=iGGlUw49; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-168150-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168150-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id xx20-20020a05620a5d9400b00790691717d8si3899977qkn.748.2024.05.03.12.45.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 12:45:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-168150-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=iGGlUw49; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-168150-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168150-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id D8EE81C23604 for ; Fri, 3 May 2024 19:45:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6B763158A3E; Fri, 3 May 2024 19:45:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="iGGlUw49" Received: from mail-oi1-f177.google.com (mail-oi1-f177.google.com [209.85.167.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0AC6A57CAD for ; Fri, 3 May 2024 19:45:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714765525; cv=none; b=sHUTGqb543GZYqWOVoz4qq09neDv5/7zc8WjOB2XnvdwAY9DK728BwhE7oMeWkMcO7yRXdMZrMDv7y1NuNVdcVrtl5wwZUKiHypZQVb/XHQkEa8FFWBXZ9e1ARbPmolgPWP5P0QKxQv0dimmzdldryEVLH6xVuQoVf4zbTQYm98= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714765525; c=relaxed/simple; bh=7VvvDmGNTombj2P/zeQa22gthcNvO5+oP6yHr7dKhY4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=PjbDVuE+H/wyS1lPcTZwcXwEcRQUIJAh9klgG2trNBEMywr8NIOLV12unwVYbW5zdh4HtTduWmdScFGPFJwbveZf+qxe9BRdpuZXkglaM6i4RuBjd+kPh4EdjbSgnDWH0VdZH1U6cu9RU/jOUd0FvEjQsSMvNG2llf6baMKgY3o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=iGGlUw49; arc=none smtp.client-ip=209.85.167.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Received: by mail-oi1-f177.google.com with SMTP id 5614622812f47-3c70b652154so5752804b6e.2 for ; Fri, 03 May 2024 12:45:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1714765522; x=1715370322; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=6FFzQiTw1LygBBk9VXhXQOHEICb9VgUAjrTiljBLyRY=; b=iGGlUw49GVXF7g5Fc/7DraKi1pTGeny24ktDd+y6Vr3Id8FD/wOS3TmRAdeRQmIPN/ CXoA3N2DL0NIWcWPiesAJJWTYfifCd0l4ro+1wPO7mqlD4q6BFed4Iv7kUdbCI08HWjD uMTwHJkEUSEGqVqvs9Jy6c1R2HEqANrJMys96MQtMzNMYVKKL+3FqFOhRH86Stzb5Awy kVCEBe0eCjkjewdaSGAJJ4qbaVuwGqZ3C80lBwDuUYYztHlOZNydF0LWl3Q3TqvcnL/R 3PfOuAWzOb8rNQU/DqxvUC0ZyMx2ujWi+L9ti58sYApoFpXHUZf4BjlY0jcQouTcRPqj T/Rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714765522; x=1715370322; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=6FFzQiTw1LygBBk9VXhXQOHEICb9VgUAjrTiljBLyRY=; b=vSubf0qLwPqP3ZkUfze0ldU3jaFAI7VJgOeBfk5OGXk8CPaoI2h1wYC4K50WJr65Gr UqFd8pG9XfNHOc912hF7JNjP0tSIX5JSXj2g34MXWuxGjqDBRTDpDVl7nVZDtIY8oeL+ 9VXol1n09GvGjz+3Js7a1/xBritvUCX/0UA7THv0KRq2RNpIf9Wo3htnwlU8bZC6mT9q f8D+Fia+VJzeS4n4THVr1MvmsvM/qmGN41/DrlimUPWVgtsNGqlfZo5l4z+6jRn6s7+n dVR2DgVP1FoxCBL4cvoyNnIrszvyhAptK3hayZCsk67eSto3sltz9TQlEBUNUp1ABD1a 3x/g== X-Forwarded-Encrypted: i=1; AJvYcCW0z2L/QWIGjpOPPqbeSIGj3hHE3HyMnQx8RWgki+yfgQQscSoQuAgrjmUbp8op9z5KIEfRAqQ+phbegBZNvBjtIcDcJ8CeCYUMq/zD X-Gm-Message-State: AOJu0YwyIMsvK3yOKW9gUacGrOOaxb1aFm8F2gx/PKWgGDyU7OB7/YIl lZ1h1BOMJPlLLzH+pfrzM3W6TffaClOhSFydBb35r+KNjaWHDL8cqRxoZLU+zm0= X-Received: by 2002:a05:6808:638d:b0:3c4:ebc4:dfa with SMTP id ec13-20020a056808638d00b003c4ebc40dfamr3938782oib.41.1714765522178; Fri, 03 May 2024 12:45:22 -0700 (PDT) Received: from freyr.lechnology.com (ip98-183-112-25.ok.ok.cox.net. [98.183.112.25]) by smtp.gmail.com with ESMTPSA id b6-20020aca2206000000b003c5f99a436fsm609129oic.15.2024.05.03.12.45.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 12:45:21 -0700 (PDT) From: David Lechner To: Jonathan Cameron Cc: David Lechner , Lars-Peter Clausen , Michael Hennerich , Alexandru Ardelean , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] iio: adc: ad9467: fix scan type sign Date: Fri, 3 May 2024 14:45:05 -0500 Message-ID: <20240503-ad9467-fix-scan-type-sign-v1-1-c7a1a066ebb9@baylibre.com> X-Mailer: git-send-email 2.43.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Mailer: b4 0.12.4 Content-Transfer-Encoding: 8bit According to the IIO documentation, the sign in the scan type should be lower case. The ad9467 driver was incorrectly using upper case. Fix by changing to lower case. Fixes: 4606d0f4b05f ("iio: adc: ad9467: add support for AD9434 high-speed ADC") Fixes: ad6797120238 ("iio: adc: ad9467: add support AD9467 ADC") Signed-off-by: David Lechner --- drivers/iio/adc/ad9467.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/iio/adc/ad9467.c b/drivers/iio/adc/ad9467.c index e85b763b9ffc..8f5b9c3f6e3d 100644 --- a/drivers/iio/adc/ad9467.c +++ b/drivers/iio/adc/ad9467.c @@ -243,11 +243,11 @@ static void __ad9467_get_scale(struct ad9467_state *st, int index, } static const struct iio_chan_spec ad9434_channels[] = { - AD9467_CHAN(0, 0, 12, 'S'), + AD9467_CHAN(0, 0, 12, 's'), }; static const struct iio_chan_spec ad9467_channels[] = { - AD9467_CHAN(0, 0, 16, 'S'), + AD9467_CHAN(0, 0, 16, 's'), }; static const struct ad9467_chip_info ad9467_chip_tbl = { --- base-commit: 827dca3129708a8465bde90c86c2e3c38e62dd4f change-id: 20240503-ad9467-fix-scan-type-sign-425daca1bb83