Message ID | 20240127200208.185815-1-javier.carrasco.cruz@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-41386-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2395:b0:106:343:edcb with SMTP id gw21csp652804dyb; Sat, 27 Jan 2024 12:02:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IE82bK5yusix1fTPUpUWdiSIMNts2FzSBLQ9luJzP8omT3BBRJ0hIrQAI0hZ9zQ3RcoP39N X-Received: by 2002:a17:906:f146:b0:a35:64ff:4817 with SMTP id gw6-20020a170906f14600b00a3564ff4817mr562697ejb.0.1706385768258; Sat, 27 Jan 2024 12:02:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706385768; cv=pass; d=google.com; s=arc-20160816; b=SgqTWGYC7ulveTibhwwxo43advApLr5vuU8FEK2PY9hYSp4BkETs2tXva2C+vlNjVs SCjAqMIuvOhrStbe+pzRG0Z8CuStnem35s0JqxhtMzC6t3YdcrWQtIeboH4UCZ132pv8 adxpzVO9aHexec4hNAbgdWZBG9nB+eg4mBSk7XCTOneBtGS2iKJBEEC4Wg8ki5S1WJGT j6B+BbCxnh0uBN2dQwzjq5c6BWJW5Hsrh7ACnp2oLl/cv917bIVysiPEenzoXCbd1vzD P+deVsPZNpP/pjx2kjh/yI2XsO2jixq7W29dFaic5DJirSkMe/IbXxbGdUTW08QUvtzG sYKg== 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=JDAwcXby0TIXFi0hTAuv1aAUwkqAC2wW0u4vJQk0oic=; fh=iJqKNTvMTe8FgfFBvSd2gc4IGMY49jah0c0n2Qrh92U=; b=br/ohChUQN7DoUFpzCkbPZ7b4oqEHo0Yer3+6C/zg/uzk9T5KQDibhlSHoAnsdnVbn XoO7ZtWL0k+PIhN7R9QodCeRKNfBOLrRs0LzEK2K8Qh1yJ+iQLXp43CDpRPyfMcNUnue aRDYEPhlY7sFhIC+1Rg5WEtLSSMqi1/iBibGf4zsv9N8YX3ByYH4fZ01PS1+SqDBOvgz yczaGQBkyuyGyeCZIKILzT8dLPz/6/Di+AKeTz9wfAf0cZC6XJ6oChsJAPhtHoEvZs5L JFpamqI/W//Ad+nj4aFJfjv5vPUvuJjIVqJ/VvGUQOyrG5Gr6Q55q+j8QE8EN1MvfjIO QicQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ZEcSyy0R; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-41386-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41386-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id o18-20020a170906289200b00a2ceb076c21si1812586ejd.801.2024.01.27.12.02.48 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Jan 2024 12:02:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-41386-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ZEcSyy0R; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-41386-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41386-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id D95D81F223BF for <ouuuleilei@gmail.com>; Sat, 27 Jan 2024 20:02:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C12C52E856; Sat, 27 Jan 2024 20:02:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ZEcSyy0R" Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) (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 539A52EB0A; Sat, 27 Jan 2024 20:02:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706385751; cv=none; b=r9sNoBGMXhCTRPI/p66o9+BI4uxES1XgnYH5fWpiF/Hw8d8mre8TDTV3uNvDwKz+TnIS/XymWsnrxVZqeI/mHZh/Qp0Odl9gSbfQtS7sP4yhlwrzxbffqHJB7vvtgfhuB9LzfdOJnmqExgHdmt69Ch/K1AvPOP3a5JskLpTEpi4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706385751; c=relaxed/simple; bh=pyVigDj7XXFmAYV8yaSMV6NWrtFthJpHm91q/W6OcRo=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=sfVhNNwLJZbHV3ddbhgsr5kJ0zFWMmlfqTCc0kqsXxCN1VgkJo3nJEKgNvYmSlHBj/HzH11gBGW7nM06lMTIEIv4KoGKGghGV5N8UyvCriphPF1SF5NQYbld4QvICXKX15W6PYNOiiOB2sxMwG/Or4jsi013BjBXm+F17J1hGn0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=ZEcSyy0R; arc=none smtp.client-ip=209.85.221.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-33ae3cc8a6aso606050f8f.2; Sat, 27 Jan 2024 12:02:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706385748; x=1706990548; 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=JDAwcXby0TIXFi0hTAuv1aAUwkqAC2wW0u4vJQk0oic=; b=ZEcSyy0RL46NmWUuc5SGm+HtGO/UBcgEbKOSVfJQUlU66szJKhfuCDy5yIlo3UU2zN T/vy3jW05rVfIrMo4iKqKfXoyrL7um/ZucUYniftNJGQlZyofSz8dsFtll3J5ju6Ehvw l97OSbPrIuW2CLuF9BUrQu8Qoxc3p4Ro5MfWenkCcGtsxEv+CuJAnIHJ/pdejEV2r9FJ 7vm+sgy52ixtKjrEPRvq/6/QiloNmZ7VW92LH5J747zr/DMMWM0Z4ZGnc0Pb3vYWJA3/ Y2QOjfcftlkhRCymp7hZilrH1joCqFTCFE8LW41Jf0G/jqpaYfCS0Mckh4+vAMpCHtNU bEsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706385748; x=1706990548; 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=JDAwcXby0TIXFi0hTAuv1aAUwkqAC2wW0u4vJQk0oic=; b=k2i0CCMO7KfcuLn5lzsKdcrkarEOiPRwCzn8UM2PgiT8M3dtSDCJr3vAAADyG2JDNn 2aNn0GDxYYioImjgNv0K6PoQIh9vJZ2X56Ve/vOSl1N5HtDi2TN0ptmC8rSszaUBH/pV CQrK/2z5G7n1Dw7fHb0j3dD469S0AVOeNq/B3wjAEbOhv9VkB/c2bgkCPXWLNa6azX7N YuD853c1Y2+IHJJKUjnCCmEgrUm5Ur/KdDWGm+H45g4bWSveOFT996oRZc0opcr7crwY GfaTC03ZrXUG6Nbi1OKOqS3uSKjemtcwTZ46gBYgOudqGuih6kUdJVaIoTZohOxoiQ1Z HZaA== X-Gm-Message-State: AOJu0YyDdZR5PwFgtYuPRqciV/wQcCkJ8QRVMYVgtVpbj0DRgXAum97E BZsTNAU0JtY3ygYGGXxnWCsS2WtCsaNNl2/AFdtDwPuTKceIs1b8vBjxi9YnU8Jr2Q== X-Received: by 2002:a5d:4e0a:0:b0:337:b02a:3f6b with SMTP id p10-20020a5d4e0a000000b00337b02a3f6bmr1635534wrt.48.1706385747833; Sat, 27 Jan 2024 12:02:27 -0800 (PST) Received: from AT01MCL012.. (2a02-8389-41cf-e200-4080-59f1-b398-a889.cable.dynamic.v6.surfer.at. [2a02:8389:41cf:e200:4080:59f1:b398:a889]) by smtp.gmail.com with ESMTPSA id ds8-20020a0564021cc800b0055c9280dc51sm1909340edb.14.2024.01.27.12.02.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Jan 2024 12:02:27 -0800 (PST) From: Javier Carrasco <javier.carrasco.cruz@gmail.com> To: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Jonathan Cameron <Jonathan.Cameron@huawei.com>, Paul Cercueil <paul@crapouillou.net>, Javier Carrasco <javier.carrasco.cruz@gmail.com> Subject: [PATCH RESEND] iio: move LIGHT_UVA and LIGHT_UVB to the end of iio_modifier Date: Sat, 27 Jan 2024 21:02:08 +0100 Message-Id: <20240127200208.185815-1-javier.carrasco.cruz@gmail.com> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789275163476434233 X-GMAIL-MSGID: 1789275163476434233 |
Series |
[RESEND] iio: move LIGHT_UVA and LIGHT_UVB to the end of iio_modifier
|
|
Commit Message
Javier Carrasco
Jan. 27, 2024, 8:02 p.m. UTC
The new modifiers should have added to the end of the enum, so they do
not affect the existing entries.
No modifiers were added since then, so they can be moved safely to the
end of the list.
Move IIO_MOD_LIGHT_UVA and IIO_MOD_LIGHT_UVB to the end of iio_modifier.
Fixes: b89710bd215e ("iio: add modifiers for A and B ultraviolet light")
Suggested-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
---
include/uapi/linux/iio/types.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Comments
On Sat, 27 Jan 2024 21:02:08 +0100 Javier Carrasco <javier.carrasco.cruz@gmail.com> wrote: > The new modifiers should have added to the end of the enum, so they do > not affect the existing entries. > > No modifiers were added since then, so they can be moved safely to the > end of the list. > > Move IIO_MOD_LIGHT_UVA and IIO_MOD_LIGHT_UVB to the end of iio_modifier. > > Fixes: b89710bd215e ("iio: add modifiers for A and B ultraviolet light") > Suggested-by: Paul Cercueil <paul@crapouillou.net> > Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com> Thanks for the resend. Applied to the fixes-togreg branch of iio.git Jonathan > --- > include/uapi/linux/iio/types.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/include/uapi/linux/iio/types.h b/include/uapi/linux/iio/types.h > index 5060963707b1..f2e0b2d50e6b 100644 > --- a/include/uapi/linux/iio/types.h > +++ b/include/uapi/linux/iio/types.h > @@ -91,8 +91,6 @@ enum iio_modifier { > IIO_MOD_CO2, > IIO_MOD_VOC, > IIO_MOD_LIGHT_UV, > - IIO_MOD_LIGHT_UVA, > - IIO_MOD_LIGHT_UVB, > IIO_MOD_LIGHT_DUV, > IIO_MOD_PM1, > IIO_MOD_PM2P5, > @@ -107,6 +105,8 @@ enum iio_modifier { > IIO_MOD_PITCH, > IIO_MOD_YAW, > IIO_MOD_ROLL, > + IIO_MOD_LIGHT_UVA, > + IIO_MOD_LIGHT_UVB, > }; > > enum iio_event_type {
diff --git a/include/uapi/linux/iio/types.h b/include/uapi/linux/iio/types.h index 5060963707b1..f2e0b2d50e6b 100644 --- a/include/uapi/linux/iio/types.h +++ b/include/uapi/linux/iio/types.h @@ -91,8 +91,6 @@ enum iio_modifier { IIO_MOD_CO2, IIO_MOD_VOC, IIO_MOD_LIGHT_UV, - IIO_MOD_LIGHT_UVA, - IIO_MOD_LIGHT_UVB, IIO_MOD_LIGHT_DUV, IIO_MOD_PM1, IIO_MOD_PM2P5, @@ -107,6 +105,8 @@ enum iio_modifier { IIO_MOD_PITCH, IIO_MOD_YAW, IIO_MOD_ROLL, + IIO_MOD_LIGHT_UVA, + IIO_MOD_LIGHT_UVB, }; enum iio_event_type {