From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7CD221E4B0; Tue, 14 May 2024 11:23:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715685804; cv=none; b=nZoil0A7FRmPfo899Pp61VPNvwyPQYvqlVm1DPSr2juykP2B90ksINLAZyfg254/Kf3CHfaQcIrtNFK61UrBJuSebTIkTIwo1QRvx1uYxaR4fxniGm4VqpdSO3aoqz07X3GiGnCLh4jw1n5w8fGhKSGKJJmlCJBFBFwUhaAzato= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715685804; c=relaxed/simple; bh=VlVlXEWFn0zMII4F2INoy1qu43938bY9RKdGkkY5dss=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=VNsd1cuREDDZRRrlwAT1GT/ObbfoevIktNR5/ewRh6uLD6skZEJvwFjE36FULKhTeLsS6p301eB842ZXIpgoZyWtoaBSoT7f99skaULvGpEXMDG8WbhUhn6GtR/J4i5+s0m19NuYUP65jlU8q8F/id+XBVQvHk8mTKR1DBEjbB8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XzmIwgnv; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="XzmIwgnv" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 60269C2BD10; Tue, 14 May 2024 11:23:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1715685804; bh=VlVlXEWFn0zMII4F2INoy1qu43938bY9RKdGkkY5dss=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XzmIwgnvlGrNwhCZOn/y+e0E1MAe/hNVGcUbuy6beWZEzRahdP+r4cWt7Gsl9Q04s xDOqAslK+HprQKqXFGKRu26Jo1ZWhpMquBj5Ux1OzkKfEC68YbEGyKp8/u9QKxvD3D iY+cNpx4BnQXVKPW5cxqccU+ABu8HwVdpqGRlWsU= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Vasileios Amoiridis , Stable@vger.kernel.org, Jonathan Cameron Subject: [PATCH 6.6 250/301] iio: pressure: Fixes BME280 SPI driver data Date: Tue, 14 May 2024 12:18:41 +0200 Message-ID: <20240514101041.695760222@linuxfoundation.org> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20240514101032.219857983@linuxfoundation.org> References: <20240514101032.219857983@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Vasileios Amoiridis commit 546a4f4b5f4d930ea57f5510e109acf08eca5e87 upstream. Use bme280_chip_info structure instead of bmp280_chip_info in SPI support for the BME280 sensor. Fixes: 0b0b772637cd ("iio: pressure: bmp280: Use chip_info pointers for each chip as driver data") Signed-off-by: Vasileios Amoiridis Link: https://lore.kernel.org/r/20240316110743.1998400-2-vassilisamir@gmail.com Cc: Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- drivers/iio/pressure/bmp280-spi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/iio/pressure/bmp280-spi.c +++ b/drivers/iio/pressure/bmp280-spi.c @@ -83,7 +83,7 @@ static const struct of_device_id bmp280_ { .compatible = "bosch,bmp180", .data = &bmp180_chip_info }, { .compatible = "bosch,bmp181", .data = &bmp180_chip_info }, { .compatible = "bosch,bmp280", .data = &bmp280_chip_info }, - { .compatible = "bosch,bme280", .data = &bmp280_chip_info }, + { .compatible = "bosch,bme280", .data = &bme280_chip_info }, { .compatible = "bosch,bmp380", .data = &bmp380_chip_info }, { .compatible = "bosch,bmp580", .data = &bmp580_chip_info }, { }, @@ -95,7 +95,7 @@ static const struct spi_device_id bmp280 { "bmp180", (kernel_ulong_t)&bmp180_chip_info }, { "bmp181", (kernel_ulong_t)&bmp180_chip_info }, { "bmp280", (kernel_ulong_t)&bmp280_chip_info }, - { "bme280", (kernel_ulong_t)&bmp280_chip_info }, + { "bme280", (kernel_ulong_t)&bme280_chip_info }, { "bmp380", (kernel_ulong_t)&bmp380_chip_info }, { "bmp580", (kernel_ulong_t)&bmp580_chip_info }, { }