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 A6C30133987; Tue, 20 Feb 2024 21:05:00 +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=1708463100; cv=none; b=V3mkzmgXleYd4Q9xGGVil/PPapNvM/de/Vb1XnrYWdxU5N1kEdhYgrDmoKy3rE4zFsvRxsbG7YkkAe2m0ic5KPtHQ+9OBccIMVN2jJRXFDqx+V4C+e88z80l+mp3FKFNEfHIlvl8EZsB/InMsqlxlQSAPNyEjplm+lYuJObVZ5Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708463100; c=relaxed/simple; bh=1nZd3yZerNNMZXfCsz8UONeE8huDaeRt0PLrj3qycmQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=QxiOnU2zVTPchEbAooSLSTej3gZw54/R2pMmqAby3HZUMk21XuzuYAK6n/LFNoYizwZdMlRxPFZ98INbZ5hZepMpU3HUr4ZedoseqAG/79r2ZsP9qQ6y3Apn494jSQecOeJPrvNfDbo6JHauw9KcrtM5CJ/6mQz/SKza8iaFnfc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=f0ArdtG5; 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="f0ArdtG5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1AB6DC433C7; Tue, 20 Feb 2024 21:04:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1708463100; bh=1nZd3yZerNNMZXfCsz8UONeE8huDaeRt0PLrj3qycmQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=f0ArdtG5rn7lMdSyllg7SaIJbOQdtK6+L+x3aKZAVdnC5xkdNDhQmQnJpeqG/rLmS D9AeYc9eJbbQ28+6C2iscOrMWOmRD4ueiTyu3iyzrcc4GzcOHD414DgbH/9FpiRLts k84XjdTX+ZY4BlOo/xeADy3YzceFsW+zRQwvIybA= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Mario Limonciello , Stable@vger.kernel.org, Jonathan Cameron Subject: [PATCH 6.1 105/197] iio: accel: bma400: Fix a compilation problem Date: Tue, 20 Feb 2024 21:51:04 +0100 Message-ID: <20240220204844.225491238@linuxfoundation.org> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240220204841.073267068@linuxfoundation.org> References: <20240220204841.073267068@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Mario Limonciello commit 4cb81840d8f29b66d9d05c6d7f360c9560f7e2f4 upstream. The kernel fails when compiling without `CONFIG_REGMAP_I2C` but with `CONFIG_BMA400`. ``` ld: drivers/iio/accel/bma400_i2c.o: in function `bma400_i2c_probe': bma400_i2c.c:(.text+0x23): undefined reference to `__devm_regmap_init_i2c' ``` Link: https://download.01.org/0day-ci/archive/20240131/202401311634.FE5CBVwe-lkp@intel.com/config Fixes: 465c811f1f20 ("iio: accel: Add driver for the BMA400") Fixes: 9bea10642396 ("iio: accel: bma400: add support for bma400 spi") Signed-off-by: Mario Limonciello Link: https://lore.kernel.org/r/20240131225246.14169-1-mario.limonciello@amd.com Cc: Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- drivers/iio/accel/Kconfig | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/iio/accel/Kconfig +++ b/drivers/iio/accel/Kconfig @@ -219,10 +219,12 @@ config BMA400 config BMA400_I2C tristate + select REGMAP_I2C depends on BMA400 config BMA400_SPI tristate + select REGMAP_SPI depends on BMA400 config BMC150_ACCEL