Message ID | 20240129195611.701611-2-dlechner@baylibre.com (mailing list archive) |
---|---|
State | Handled Elsewhere |
Headers | show
Received: from mail-oa1-f48.google.com (mail-oa1-f48.google.com [209.85.160.48]) (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 9D4D176029 for <linux-iio@vger.kernel.org>; Mon, 29 Jan 2024 19:56:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706558178; cv=none; b=hHKz4Gejc7pYAswvy29o2l96QCpfb4ko6+5mrQSm8swq22Yr310H50vav5zvDB2X6Bmanlm92Y5NVY1qLek9gEwIGXz/WwohQuCo3rlIdwsnp+eiCo8hgI1gkkGPdI7JxXx4E6flhN9Yo5aO8Zt1w46cyzrI1qdddFbmIetu/PM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706558178; c=relaxed/simple; bh=oZHqo1ucDWB9pyoSuojibAK6SA+XCVw1HAeO06tsAhI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=gDxJpQUa6zp8CtOho1Qqt1uxTE6O2joNxFZKesj2o5FtTBB7gO+BgZSdW+RJR8b8ArfzPlPukZX2EzXpNYc32fzXm7PRk1TiRL8FJs1YK17H2r/srzaBFH6qJNPgMVgYmPkQzogvzCbuB9agWMLyA/JINnCu/0aTGnZ/gDbF++w= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=UP814CVC; arc=none smtp.client-ip=209.85.160.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="UP814CVC" Received: by mail-oa1-f48.google.com with SMTP id 586e51a60fabf-21481a3de56so1985407fac.2 for <linux-iio@vger.kernel.org>; Mon, 29 Jan 2024 11:56:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1706558175; x=1707162975; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=adx5Y3cgX71ZvwEi/qb8yz5ApFtROFIqpevhH+PdrQ4=; b=UP814CVCLf/uQmlsjYWNjPXjRHxkcY8pLJEFPbF/fIcQP/9qFM841xqqOGYreARf3V K17Dy0jfJYLAI5voOR5i6lnEThVqlEe1WX+XkY904h/7GjsCYmvnxHjz45xSoEIkb+/D xgh72qEObXa8FYHM7f2eZBvruHPJnQezKOEOJ0M7ziZau1i0tm8nfhgnZDe8o7ng2vkM bEvWJGyM40lUQFvBno0wwVj5xtuBcKnqaq8xoVjR0/6KSoTcVlfDAxKYQmkplZoN9uiV ri9cWlTW4QUywJVTjgYb9fu4vi7BVgPkFFN4zjQ7Gn6ld05t1bMSGAwWSpqwmYL9PBCW +xIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706558175; x=1707162975; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=adx5Y3cgX71ZvwEi/qb8yz5ApFtROFIqpevhH+PdrQ4=; b=q4rISYg8DXrDofkPtIBMA0HwmsnJY5zCcu6RaT/D6kP8F9745c+Ob1y0iv6/PYXaKJ adTJlamI+Jiq/GOQTVKTSeqpp7gn46xSumGa3RLN+PcgFGwMx00fCMMY+aYGIEfJGctx q47cUUEqqfGy7v81v/Z1FCEkA5SR7lwZEC9B14p8Crhj0D1nRSzf6e8ix3WvMTyIDyKC 5wUlpEUOSUt8OtGsaxfKzjfZ8NHwjg/KpXkNsrjF7i454yTPmqeezQD2uO6RVuBP3AWD s+LEaCIiaU01kKVaJ2xy8ywcn/67GRdY1eeNlKOibajTYj/dUE0yEmuU6QTeg5aypI2f Emmw== X-Gm-Message-State: AOJu0YwGpxq+iC4MVZB0/yu9L7RApaPkGMAjbB4icwSNTGZRJld1fsVU FyTtXjTClXSlrIYvD3V2Tn3XBOI/HO8SFBdUrTLpNAehvg3cDs/uGwoI7S4G3pA= X-Google-Smtp-Source: AGHT+IEBp/0NmwQKbLpJMtO4Ok4/RE6NyiQkuoJPvxFVoRV9yOyDR+b2mn7s4vgNN7r881/BhR1bZw== X-Received: by 2002:a05:6870:470b:b0:210:96cf:b552 with SMTP id b11-20020a056870470b00b0021096cfb552mr6734292oaq.23.1706558175731; Mon, 29 Jan 2024 11:56:15 -0800 (PST) Received: from freyr.lechnology.com (ip98-183-112-25.ok.ok.cox.net. [98.183.112.25]) by smtp.gmail.com with ESMTPSA id r11-20020a056830134b00b006e129d7b833sm641292otq.39.2024.01.29.11.56.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 11:56:15 -0800 (PST) From: David Lechner <dlechner@baylibre.com> To: Jonathan Cameron <jic23@kernel.org> Cc: David Lechner <dlechner@baylibre.com>, Michael Hennerich <michael.hennerich@analog.com>, =?utf-8?q?Nuno_S=C3=A1?= <nuno.sa@analog.com>, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, kernel test robot <lkp@intel.com> Subject: [PATCH v2 1/2] iio: adc: ad7380: make ad7380_regmap_config static Date: Mon, 29 Jan 2024 13:56:07 -0600 Message-ID: <20240129195611.701611-2-dlechner@baylibre.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240129195611.701611-1-dlechner@baylibre.com> References: <20240129195611.701611-1-dlechner@baylibre.com> Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: <linux-iio.vger.kernel.org> List-Subscribe: <mailto:linux-iio+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-iio+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit |
Series |
iio: adc: ad7380: fix sparse warnings
|
expand
|
diff --git a/drivers/iio/adc/ad7380.c b/drivers/iio/adc/ad7380.c index 80712aaa9548..44b8b18ab213 100644 --- a/drivers/iio/adc/ad7380.c +++ b/drivers/iio/adc/ad7380.c @@ -202,7 +202,7 @@ static int ad7380_regmap_reg_read(void *context, unsigned int reg, return 0; } -const struct regmap_config ad7380_regmap_config = { +static const struct regmap_config ad7380_regmap_config = { .reg_bits = 3, .val_bits = 12, .reg_read = ad7380_regmap_reg_read,
ad7380_regmap_config is not used outside of ad7380.c, so make it static. Fixes sparse warning: drivers/iio/adc/ad7380.c:205:28: sparse: sparse: symbol 'ad7380_regmap_config' was not declared. Should it be static? Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202401280629.5kknB57C-lkp@intel.com/ Signed-off-by: David Lechner <dlechner@baylibre.com> --- drivers/iio/adc/ad7380.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)