From patchwork Mon Sep 2 22:16:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 13787720 Received: from fgw22-7.mail.saunalahti.fi (fgw22-7.mail.saunalahti.fi [62.142.5.83]) (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 49EE6188912 for ; Mon, 2 Sep 2024 22:28:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.142.5.83 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725316128; cv=none; b=ZeKEmcj64zmDOCNyBpxlR7Z/V1O7KJCJKwh1qO+VBZr9ay339Gw34Gl0jODap3C2//UW4wkXOZ2k6l5do+t8F2gMRBs8XlZld+IJ4fk7ZWDAxxspvQwVwnQ7sWxJ/YSNXQ8D9XAQuuFUIB8aa3jioBy6wVkjizLAGLXSG2zlrUE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725316128; c=relaxed/simple; bh=h/Tc5Jonr5mhfATTRiYj4QzNBRxFdOcYM0UuTjM6PEg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=G4gJGL0GFFIuPte6PzeALbxkK0ezCgZ8ogzhC2yMabmgnaWBtis1p46CrtC8TDxDWRkZFYS4hk6KTMalmZ9eaVTmu03fGyKGDeaiWx2QbiGWUwrLqbpMgyevigbRd3cTnO+mtst4e9QdaZels+/YN8zkpThhPp9OQmAtTywpmu8= 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.83 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 fgw23.mail.saunalahti.fi (Halon) with ESMTP id abfcba88-697a-11ef-8256-005056bdfda7; Tue, 03 Sep 2024 01:28:26 +0300 (EEST) From: Andy Shevchenko To: Jonathan Cameron , David Lechner , Andy Shevchenko , Michael Hennerich , Antoniu Miclaus , Jinjie Ruan , Lorenzo Bianconi , Srinivas Pandruvada , Basavaraj Natikar , linux-input@vger.kernel.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Jiri Kosina , Jonathan Cameron , Lars-Peter Clausen , Michael Hennerich , Andy Shevchenko Subject: [PATCH v1 00/22] iio: use dev_get_platdata() to access platform_data Date: Tue, 3 Sep 2024 01:16:45 +0300 Message-ID: <20240902222824.1145571-1-andy.shevchenko@gmail.com> X-Mailer: git-send-email 2.46.0 Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Unify how IIO drivers access platform_data field of struct device. In simple and straightforward cases constify the local variables. (Not tested) Andy Shevchenko (22): iio: accel: hid-sensor-accel-3d: Get platform data via dev_get_platdata() iio: adc: ad7266: Get platform data via dev_get_platdata() iio: adc: ad7791: Get platform data via dev_get_platdata() iio: adc: ad7887: Get platform data via dev_get_platdata() iio: adc: ad7793: Get platform data via dev_get_platdata() iio: adc: ltc2497: Get platform data via dev_get_platdata() iio: dac: ad5504: Get platform data via dev_get_platdata() iio: dac: ad5791: Get platform data via dev_get_platdata() iio: dac: m62332: Get platform data via dev_get_platdata() iio: dac: max517: Get platform data via dev_get_platdata() iio: frequency: ad9523: Get platform data via dev_get_platdata() iio: frequency: adf4350: Get platform data via dev_get_platdata() iio: gyro: hid-sensor-gyro-3d: Get platform data via dev_get_platdata() iio: imu: st_lsm6dsx: Get platform data via dev_get_platdata() iio: light: hid-sensor-als: Get platform data via dev_get_platdata() iio: light: hid-sensor-prox: Get platform data via dev_get_platdata() iio: light: lm3533-als: Get platform data via dev_get_platdata() iio: magnetometer: hid-sensor-magn-3d: Get platform data via dev_get_platdata() iio: orientation: hid-sensor-incl-3d: Get platform data via dev_get_platdata() iio: orientation: hid-sensor-rotation: Get platform data via dev_get_platdata() iio: position: hid-sensor-custom-intel-hinge: Get platform data via dev_get_platdata() iio: pressure: hid-sensor-press: Get platform data via dev_get_platdata() drivers/iio/accel/hid-sensor-accel-3d.c | 5 ++--- drivers/iio/adc/ad7266.c | 2 +- drivers/iio/adc/ad7791.c | 4 ++-- drivers/iio/adc/ad7793.c | 2 +- drivers/iio/adc/ad7887.c | 2 +- drivers/iio/adc/ltc2497-core.c | 15 +++++---------- drivers/iio/dac/ad5504.c | 2 +- drivers/iio/dac/ad5791.c | 2 +- drivers/iio/dac/m62332.c | 2 +- drivers/iio/dac/max517.c | 4 ++-- drivers/iio/frequency/ad9523.c | 2 +- drivers/iio/frequency/adf4350.c | 2 +- drivers/iio/gyro/hid-sensor-gyro-3d.c | 4 ++-- drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c | 15 +++++---------- drivers/iio/light/hid-sensor-als.c | 4 ++-- drivers/iio/light/hid-sensor-prox.c | 4 ++-- drivers/iio/light/lm3533-als.c | 6 +++--- drivers/iio/magnetometer/hid-sensor-magn-3d.c | 4 ++-- drivers/iio/orientation/hid-sensor-incl-3d.c | 4 ++-- drivers/iio/orientation/hid-sensor-rotation.c | 4 ++-- .../iio/position/hid-sensor-custom-intel-hinge.c | 4 ++-- drivers/iio/pressure/hid-sensor-press.c | 4 ++-- 22 files changed, 43 insertions(+), 54 deletions(-)