Message ID | 20240902222824.1145571-9-andy.shevchenko@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show
Received: from fgw23-7.mail.saunalahti.fi (fgw23-7.mail.saunalahti.fi [62.142.5.84]) (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 B89C518893B for <linux-iio@vger.kernel.org>; Mon, 2 Sep 2024 22:28:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.142.5.84 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725316139; cv=none; b=gXWCb8X2mlWzFu9/WsHVCWqsYpEH5mu43pCN4OSpGYw8DG5knsh8nzhW0219mJqa18z25Viky/+OfCkRboW9ZEMHXKrVLM8ZUVpkwuhlYWkPolz4ZPYjeXH6jdBEh7D35hMJvJPMxPCxicbVbAT0GgdIQdREhU/v7qipG4A4ZzM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725316139; c=relaxed/simple; bh=6s0/uK8OpJ0JPPuTa8tnsMtjG6IVSRGiOMZJleFz5mc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=OPjeWmb2zz/QORET0hNlyx6sv2jdK/fe0q07JG9rkY2BtT4TMo4BcayHGmrn90fFHapAjSWylWQEOBPHbc0ZEeywret4krdv6QRyM4lXuKA65BlbskhNLEjAiVvx8PeACkn5dJUjRyBKpVa7wF7PPOP3fFewk8KIhCsJuWySSxY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com; spf=fail smtp.mailfrom=gmail.com; arc=none smtp.client-ip=62.142.5.84 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=gmail.com Received: from localhost (88-113-25-87.elisa-laajakaista.fi [88.113.25.87]) by fgw20.mail.saunalahti.fi (Halon) with ESMTP id b0c0841e-697a-11ef-8e8a-005056bd6ce9; Tue, 03 Sep 2024 01:28:34 +0300 (EEST) From: Andy Shevchenko <andy.shevchenko@gmail.com> To: Jonathan Cameron <Jonathan.Cameron@huawei.com>, David Lechner <dlechner@baylibre.com>, Andy Shevchenko <andriy.shevchenko@linux.intel.com>, Michael Hennerich <michael.hennerich@analog.com>, Antoniu Miclaus <antoniu.miclaus@analog.com>, Jinjie Ruan <ruanjinjie@huawei.com>, Lorenzo Bianconi <lorenzo@kernel.org>, Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>, Basavaraj Natikar <Basavaraj.Natikar@amd.com>, linux-input@vger.kernel.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Jiri Kosina <jikos@kernel.org>, Jonathan Cameron <jic23@kernel.org>, Lars-Peter Clausen <lars@metafoo.de>, Michael Hennerich <Michael.Hennerich@analog.com>, Andy Shevchenko <andy.shevchenko@gmail.com> Subject: [PATCH v1 08/22] iio: dac: ad5791: Get platform data via dev_get_platdata() Date: Tue, 3 Sep 2024 01:16:53 +0300 Message-ID: <20240902222824.1145571-9-andy.shevchenko@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240902222824.1145571-1-andy.shevchenko@gmail.com> References: <20240902222824.1145571-1-andy.shevchenko@gmail.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: use dev_get_platdata() to access platform_data
|
expand
|
diff --git a/drivers/iio/dac/ad5791.c b/drivers/iio/dac/ad5791.c index 75b549827e15..553431bf0232 100644 --- a/drivers/iio/dac/ad5791.c +++ b/drivers/iio/dac/ad5791.c @@ -341,7 +341,7 @@ static const struct iio_info ad5791_info = { static int ad5791_probe(struct spi_device *spi) { - struct ad5791_platform_data *pdata = spi->dev.platform_data; + const struct ad5791_platform_data *pdata = dev_get_platdata(&spi->dev); struct iio_dev *indio_dev; struct ad5791_state *st; int ret, pos_voltage_uv = 0, neg_voltage_uv = 0;