Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2951133rdd; Sat, 13 Jan 2024 08:26:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IEiqA5QDosHOybUUuRxgjx7wJPzRnJPFiQpFonyClIl7AFbNiKyLetI8dF9gnqFtVxXtoBX X-Received: by 2002:a05:620a:24c5:b0:783:25f9:ca96 with SMTP id m5-20020a05620a24c500b0078325f9ca96mr4004602qkn.118.1705163183499; Sat, 13 Jan 2024 08:26:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705163183; cv=none; d=google.com; s=arc-20160816; b=Nmq5wZrEpY7x2cIy03BtnMPaRxVRaFDRP5fIMMISRgz5sJ04R1jiKOIbjM0CugwDpN eCEeqWenB1KUud0/JKzNt4cTcJeTOXQKWr/8hgS9RTVgSP/yXBtflO7hirVsu749dd2Q lvn7FMz+LjezZGLk9bvj6fZ6T5zh952yLUlm6Y2bh7MAGPfJ6EFCwoYzP1B1qDjqnY10 a50w7vO4IJDYuHU78VD/yxTGnGKvBis6FV/Jo1aNnHD3oZSQ97Zfg0i+Ri4H3ZRO2hXt v4Hjaag5gmnE+ziekl0IiRiAsKi8FnnyojmfvQtsWOPgxloVYs4R9poK9q8+BeaQN148 QFug== ARC-Message-Signature: i=1; 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:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=Co8cEcZoqtmwAWsAAowURFYVjm+HEWyVvHsVmXypNGQ=; fh=qQB6EjJg3aqZ7J8WSFfjjrjc4AJku8VFXWGsvIQp0dw=; b=NWU0tlfBzOZLwBdJcmnQOzq2obX7GscT26UylNJZv5lnbroUIn0nzEhGUI5yIVq7Pu znhQxoHm9MlgdOWr3BVqrIuzUddBYUhnbuwMqBJ5OqZ/K+bfjGFRlhRi9DTze4+vUOy7 PT3S9+TpuPubdCbfmngNUu/8VkctXlgNEtZjzpI/ijO2EUbVb1PSm340ORPIlQUaUtRT of1gStnc9tifEPUpdBcRJP6qjPkEKLKN+jIj70SW5XfjsAdoKdUVj1YP2//SInO0ZnR7 dWIcAXBAYVI+6KVpuI6SSMNAnXvZNg9HVXxXkaAJPQKasoHP1EeOxOaC9hxVCkCjluoU ygwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mq1CvpJD; spf=pass (google.com: domain of linux-kernel+bounces-25334-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25334-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 o27-20020a05620a229b00b007834bf573dfsi2721031qkh.284.2024.01.13.08.26.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Jan 2024 08:26:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-25334-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=@kernel.org header.s=k20201202 header.b=mq1CvpJD; spf=pass (google.com: domain of linux-kernel+bounces-25334-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25334-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 349FB1C21328 for ; Sat, 13 Jan 2024 16:26:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 22F91442D; Sat, 13 Jan 2024 16:26:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="mq1CvpJD" 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 4E15A3FDB; Sat, 13 Jan 2024 16:26:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 29DF5C433C7; Sat, 13 Jan 2024 16:26:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705163176; bh=faSWsUlIKQgmxLiSOdVQbwBE0dKKRlGfgL2TWtQf0vY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=mq1CvpJDlFCzPCgK+YICMMfHhsZfHYJLobqPZpeL7A3GPqHTa6JFh8Esnyw3Y7QrF /NBIGQX/olpIXCtjI+Jhk73cSIvNe5kE1DqCivHYMT/Ti4N2qQvKTrQ2C30ikVqQaR GMvOqyBgfcTlcICK5V+mwBtAiU1T4WxLll+CrWvtOIaPFbS2cvpmoSjURVmF2evwQL n7CvPUuDusg9LWtmOSo8erAFZjK25vU5/tVNXDb5bGNCNgVR8lDbh1AVapFOe9aKRO sXt9WmnS/bcYgjevYsOmotrY1zXV43Z3K4HxNMf9dXvTzvlo+qcmaYAB8FNtmA9lHd ISmhTkmqCAJyg== Date: Sat, 13 Jan 2024 16:26:09 +0000 From: Jonathan Cameron To: Randy Dunlap Cc: linux-kernel@vger.kernel.org, Andrea Merello , Lars-Peter Clausen , linux-iio@vger.kernel.org Subject: Re: [PATCH] iio: imu: bno055: serdev requires REGMAP Message-ID: <20240113162609.3e950ae8@jic23-huawei> In-Reply-To: <20240110185611.19723-1-rdunlap@infradead.org> References: <20240110185611.19723-1-rdunlap@infradead.org> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.39; x86_64-pc-linux-gnu) 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=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 10 Jan 2024 10:56:11 -0800 Randy Dunlap wrote: > There are a ton of build errors when REGMAP is not set, so select > REGMAP to fix all of them. > > Examples (not all of them): > > ../drivers/iio/imu/bno055/bno055_ser_core.c:495:15: error: variable 'bno055_ser_regmap_bus' has initializer but incomplete type > 495 | static struct regmap_bus bno055_ser_regmap_bus = { > ../drivers/iio/imu/bno055/bno055_ser_core.c:496:10: error: 'struct regmap_bus' has no member named 'write' > 496 | .write = bno055_ser_write_reg, > ../drivers/iio/imu/bno055/bno055_ser_core.c:497:10: error: 'struct regmap_bus' has no member named 'read' > 497 | .read = bno055_ser_read_reg, > ../drivers/iio/imu/bno055/bno055_ser_core.c: In function 'bno055_ser_probe': > ../drivers/iio/imu/bno055/bno055_ser_core.c:532:18: error: implicit declaration of function 'devm_regmap_init'; did you mean 'vmem_map_init'? [-Werror=implicit-function-declaration] > 532 | regmap = devm_regmap_init(&serdev->dev, &bno055_ser_regmap_bus, > ../drivers/iio/imu/bno055/bno055_ser_core.c:532:16: warning: assignment to 'struct regmap *' from 'int' makes pointer from integer without a cast [-Wint-conversion] > 532 | regmap = devm_regmap_init(&serdev->dev, &bno055_ser_regmap_bus, > ../drivers/iio/imu/bno055/bno055_ser_core.c: At top level: > ../drivers/iio/imu/bno055/bno055_ser_core.c:495:26: error: storage size of 'bno055_ser_regmap_bus' isn't known > 495 | static struct regmap_bus bno055_ser_regmap_bus = { > > Fixes: 2eef5a9cc643 ("iio: imu: add BNO055 serdev driver") > Signed-off-by: Randy Dunlap > Cc: Andrea Merello > Cc: Jonathan Cameron > Cc: Lars-Peter Clausen > Cc: linux-iio@vger.kernel.org Applied to the fixes-togreg branch of iio.git and marked for stable. Thanks, Jonathan > --- > drivers/iio/imu/bno055/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff -- a/drivers/iio/imu/bno055/Kconfig b/drivers/iio/imu/bno055/Kconfig > --- a/drivers/iio/imu/bno055/Kconfig > +++ b/drivers/iio/imu/bno055/Kconfig > @@ -8,6 +8,7 @@ config BOSCH_BNO055 > config BOSCH_BNO055_SERIAL > tristate "Bosch BNO055 attached via UART" > depends on SERIAL_DEV_BUS > + select REGMAP > select BOSCH_BNO055 > help > Enable this to support Bosch BNO055 IMUs attached via UART.