From patchwork Mon Jan 23 21:17:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 646227 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1666CC54EAA for ; Mon, 23 Jan 2023 21:04:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231501AbjAWVEj (ORCPT ); Mon, 23 Jan 2023 16:04:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232852AbjAWVEj (ORCPT ); Mon, 23 Jan 2023 16:04:39 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D46FD24488; Mon, 23 Jan 2023 13:04:36 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 8B2CBB80E96; Mon, 23 Jan 2023 21:04:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A1F75C4339B; Mon, 23 Jan 2023 21:04:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1674507874; bh=KwirpNA3y6XauK8S7usKhZVnThfvTfYC6YOhW8SKf60=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=i+jA0BYYFZyKNfUtq94ha6fduVxGqGl/I1w6itk0X7B08PdSksSRtoPam8SE5jn4u N5dts7UHIbfBG/+M7etiq6Z0T7EDjFKHavpywCfyIf0rIzuf3ClGNNb3y1viNFOeZK 0eNcyyYPK+2GBrBMjkpkkXJe1SrYeEtY1MJwZhClmTGwpflFhy1f4yquUp09wyysHT DXpdowIrC+LMZ/tmXqL/jgiar248NYgEo1SKUscudELYC2xPYNO20fOeoyrTfXNckD q1w/NUkeuFlizh4skjX9RWjqfhY9L8DdwOtHhExnNJDxPp3ZtMaSD+SbFsAeQIti7x YQQTQxfQhu9RA== From: Jonathan Cameron To: linux-iio@vger.kernel.org, devicetree@vger.kernel.org Cc: Rob Herring , Krzysztof Kozlowski , Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , Barry Song Subject: [PATCH 06/12] staging: iio: accel: adis16203: Drop driver name define Date: Mon, 23 Jan 2023 21:17:52 +0000 Message-Id: <20230123211758.563383-7-jic23@kernel.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230123211758.563383-1-jic23@kernel.org> References: <20230123211758.563383-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron These defines just make it harder to see what strings are set for which driver structure fields. Much better to just have the string inline. In this case it wasn't even used. Signed-off-by: Jonathan Cameron --- drivers/staging/iio/accel/adis16203.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/iio/accel/adis16203.c b/drivers/staging/iio/accel/adis16203.c index 67c0340d7097..25342717539b 100644 --- a/drivers/staging/iio/accel/adis16203.c +++ b/drivers/staging/iio/accel/adis16203.c @@ -67,8 +67,6 @@ enum adis16203_scan { ADIS16203_SCAN_TEMP, }; -#define DRIVER_NAME "adis16203" - static int adis16203_write_raw(struct iio_dev *indio_dev, struct iio_chan_spec const *chan, int val, @@ -196,7 +194,7 @@ static int adis16203_probe(struct spi_device *spi) /* this is only used for removal purposes */ spi_set_drvdata(spi, indio_dev); - indio_dev->name = spi->dev.driver->name; + indio_dev->name = "adis16203"; indio_dev->channels = adis16203_channels; indio_dev->num_channels = ARRAY_SIZE(adis16203_channels); indio_dev->info = &adis16203_info;