Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp787277lqp; Wed, 22 May 2024 22:50:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX1lfQhA/I82jucruGDUXXPMIAjx9Um1FIUH2cVy7dQUvBjZ3XbdFubi1vuuvYZ9N0qrsAxtG2GO6ILobm6IWh/Nah1DqM6GViNEsvMSQ== X-Google-Smtp-Source: AGHT+IEVhUn394k0G7/Krx//fdV19rwHrakQyT00R4K4+X3M+FEBxCDMOQicpH414l1cMF2diYHV X-Received: by 2002:a05:6a00:2441:b0:6f3:eb71:af9d with SMTP id d2e1a72fcca58-6f6d61fdaf6mr3885922b3a.28.1716443435520; Wed, 22 May 2024 22:50:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716443435; cv=pass; d=google.com; s=arc-20160816; b=QiumpcnnaI5bJPqgy5ibEoK3PKX1yY9EU4dUGVInNGVO+RgfME355rNFjfKc/ApDzG 4TTKeyiwHTQ7JtkQKEfHjq0VLag0e3O66i/TO/Fd7GW+aWDJCN2VDSdIV/cuCmxM5tph fNNOWW1Rgzvtr6gr8CMqZoyfVi26jVySC7SjwNHhBUmCB3MZL6Ds0K00nifVHySOm4xF hD0qeq5Aqup5UMoQP80GRGfu2ia2oymbuBZ1CH2L+DqpvkWgXIMPMFchPP9EuUwPqcu9 xARWn1BGnK/rKaTEs3IIjwUpmMUWm/pOCSH7qq8qrjMaI16KizcrIMPAm2YabdBDeT90 RCVg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=7Rk+2rzBjeJPDMqabcGBOYt/yCems4idycSDBd2Ha6w=; fh=4jS5D0rnOASiccHaONiBsvwei1kdsxIjf4jTeLmXje8=; b=VCvG5ztZY8RNuDfb3OapiHG8BVSsX/w+BLy3STmyK0YCQUSHQtYnbjQltzBFu+MvCX Opy9UTSmc2/9Gcp5z3H5YQpfDXQU47uc10ohfdweWFE/jDjVH5MZC3g4OUgprkIGx6BU tyIpUXhlC8G186w48mOObw62E9ygrw0r5kWybrwgHO0IwQ/BAl0+q/BRIHwtuJOH7GpT +UczlcNGg7ukMjYPXUCtY1arIYSxBkXLTvHySHCgy95hDmJXmSyvxFTl4vuF+N2feuu+ CzAjbEx62oDmoLbfkFUHcM2JS7R83mCVyTOS4Hr4uw3NgSqUEb2Q933FDJtawhwzxdEz F1Bw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=SdVMATvZ; 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-187017-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187017-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f4d2a724eesi8292352b3a.36.2024.05.22.22.50.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 22:50:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-187017-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=SdVMATvZ; 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-187017-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187017-linux.lists.archive=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 2CE05281EEA for ; Thu, 23 May 2024 05:50:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5EB9C13B299; Thu, 23 May 2024 05:50:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="SdVMATvZ" Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com [209.85.167.51]) (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 EBF241C3E; Thu, 23 May 2024 05:50:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716443428; cv=none; b=XkmYbKaT8LS0eOpTOdtHHAH40uHRUR12muAPeuIqwpoXbGQ5fGigkFFq45EbsvpfNvM3ts+93LJ3KQUuZSAakONw+UxpTgwnjh18R9WbtIm9AXrdyCUKOeeKf5qxiBtARq5ICX61oG7AeObIKVQud6NQxzgmP1qhLatFvaWlDOI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716443428; c=relaxed/simple; bh=O9ZpLdrSq0BPu4TXhdDqOZw6yiHYNY75gDerfpgrPYA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=XOmT2Stn8IbRyblz8oA5+OVPU7ivSyTogr+BeLEpxWqve39J0XWklKsIIbUwlvdvH6qHQnrdZSsV0TyPXx0pfHNERuR34tMnF8bCpZwxs8KkzYetruOR0dS8jCepmVwmN4jf1JAglAp33YWAuBFzLLl8JYQDggxcoxZFc/obGY0= 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=SdVMATvZ; arc=none smtp.client-ip=209.85.167.51 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-lf1-f51.google.com with SMTP id 2adb3069b0e04-51f3a49ff7dso9456778e87.2; Wed, 22 May 2024 22:50:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716443425; x=1717048225; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=7Rk+2rzBjeJPDMqabcGBOYt/yCems4idycSDBd2Ha6w=; b=SdVMATvZKPtiDKEUDVQ9HeFlymYKQ/gtkY1bEyB6iaTzKvz35eL8UDjWAvCeCm6yuE KQ/ZzjR5ywkzCvWWRgEInPyn481zw1EmQivr60zlzf6B4Zlqr4EQsOc2cs91wiVH9TSa h8lzlyxSeYWGCTsI+sLO7p1UPMRrMj70WZAWs4vFYtx4zjfW3KlmPgBsDTKJLo5UaZPw 3atEc6ohm46c0PIzW4GmUyHI4ZtT9NgKOQJ5lnqgeXKOx9DO/rWK2NiDWH59+crtFsOT X+tBpSYmDkEB7PDB3qyQ2Jv5o+VjqXqGEaAjH1sIYvSsH6upkn+ocIRF6ciEt9QjD1mz sAwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716443425; x=1717048225; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=7Rk+2rzBjeJPDMqabcGBOYt/yCems4idycSDBd2Ha6w=; b=Myv+qpq3Ts/MKN0l2bWNcb9e56sjhsL5i8tbhXZGy7klde1nQDRNFVPnFY+vLOwoAN iMhwQ0/2b2XJZ6/Sdsdne3a9HANlkiEGdNpFqxXwch05tQdeL/5zpEQkjEYMcRDli3bC tU5i18kzdUgVU+EfPee7lADus3bc/zQ7LKL1fb8vj8LVoqRd5cXm8Se9kL43lpc0lJRo v3bV17ruRN/efcYvWMfCE2QUzy+YDu5uW+6by62w2ICzqeNxGg+3Z44tDLxelyr91DKz k9pr2ZiBjWrFWMOHCpre4AJg2p9VK7y3/ItrDxt5K7HEBKzO5MHIPksoQ7juz0qujtGJ KN9Q== X-Forwarded-Encrypted: i=1; AJvYcCWkb7TbjrIItdvXjRKtLvs1e8M1IHjDArVzUhsxqsYZ0W0DxC0NBNfIeBeSRD0/nalzrBVgh47Eud6lPEyTw9RYa/WQ8yLF2dz79Pw1 X-Gm-Message-State: AOJu0YyRg9xZLptgTFoi4M2Ww7B0zqTHsT5+HNBEn6LeD52eEGSgJFrq 0t6UmYpcH7KSrP3fUR0LrINjtTzj1Ay+RX8Uy1RGt2I4E8BX5vbb5mup9Q== X-Received: by 2002:ac2:58f2:0:b0:521:7885:150f with SMTP id 2adb3069b0e04-526bdd487f6mr1899403e87.28.1716443424684; Wed, 22 May 2024 22:50:24 -0700 (PDT) Received: from ?IPV6:2a10:a5c0:800d:dd00:8cfe:d6e7:6701:9dfd? ([2a10:a5c0:800d:dd00:8cfe:d6e7:6701:9dfd]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-52867f38c56sm59605e87.3.2024.05.22.22.50.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 May 2024 22:50:24 -0700 (PDT) Message-ID: Date: Thu, 23 May 2024 08:50:22 +0300 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 3/3] iio: light: rohm-bu27034: remove unused struct 'bu27034_result' To: linux@treblig.org, jic23@kernel.org, lars@metafoo.de, marius.cristea@microchip.com Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240522230457.478156-1-linux@treblig.org> <20240522230457.478156-4-linux@treblig.org> Content-Language: en-US, en-GB From: Matti Vaittinen In-Reply-To: <20240522230457.478156-4-linux@treblig.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Thanks David! On 5/23/24 02:04, linux@treblig.org wrote: > From: "Dr. David Alan Gilbert" > > 'bu27034_result' is unused since the original > commit e52afbd61039 ("iio: light: ROHM BU27034 Ambient Light Sensor"). > > Remove it. > > Signed-off-by: Dr. David Alan Gilbert As I wrote earlier, this driver in it's current form is pretty much useless. The BU27034NUC was cancelled and, as far as I know, never produced "en masse". The replacement, BU27034ANUC, has undergone somewhat meaningful changes like removal of one of the data channels - so this driver is not producing correct results on that IC. I have promised to rework this driver to support the new variant, and I have this new HW on my table - but I am currently negotiating to be able to provide an open-source Lux calculation formula in the driver... This is causing some slight delay. So, I think applying this patch is still worth :) Acked-by: Matti Vaittinen > --- > drivers/iio/light/rohm-bu27034.c | 6 ------ > 1 file changed, 6 deletions(-) > > diff --git a/drivers/iio/light/rohm-bu27034.c b/drivers/iio/light/rohm-bu27034.c > index bf3de853a811..4937bf6fa046 100644 > --- a/drivers/iio/light/rohm-bu27034.c > +++ b/drivers/iio/light/rohm-bu27034.c > @@ -223,12 +223,6 @@ struct bu27034_data { > } scan; > }; > > -struct bu27034_result { > - u16 ch0; > - u16 ch1; > - u16 ch2; > -}; > - > static const struct regmap_range bu27034_volatile_ranges[] = { > { > .range_min = BU27034_REG_SYSTEM_CONTROL, -- Matti Vaittinen Linux kernel developer at ROHM Semiconductors Oulu Finland ~~ When things go utterly wrong vim users can always type :help! ~~