From patchwork Mon Jul 12 06:10:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 472851 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp2647438jao; Sun, 11 Jul 2021 23:29:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwa31pabck9lfcAUGBHpKZXtgGw4sCG9L+1atU/6BEeQBZK0KP1/Rm89XjIkljsKHY+AMlh X-Received: by 2002:a05:6402:18de:: with SMTP id x30mr8259248edy.351.1626071352266; Sun, 11 Jul 2021 23:29:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626071352; cv=none; d=google.com; s=arc-20160816; b=gG//PG6hfMIQd9btawokCzTxzIykuaVq8D9mAG+/hsCjwN/eXs8CzqcnwXGBUnRBaV daqWi1LJHIkSgd8Rxk9mIyhnlPkHlONv6wqfUGxEtNNi86bWjlFpgz+cE2w2Dihh6Cvi tTVyaBpOXE+fqXcif+c+l7WQvAeYOyQyjNLIzE+kUw75QBPt6RS2QSstK9suiTq4C6KC 1NDPMwPuYlL+d1NDSp28HtWFdPRzZ2xXD35IrBmt9rDkyNuVTwL1zqafKlioRzUbKpTC VOveYy5fJgAkhFRB4NBWDQyBiSdxlEv0EEUjZ0pLh7e6YsaqRAcT7pyAT7qsBdmG4eE7 LWUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=9+NpFlYwXkVY8a521OyAfqBHAzwhVORMdbxctdjWoVE=; b=sAcrUyeTh5hER1TOij07i2GnWwfL4gKjnEAUY1dDlV3a4DohdP5+zcld8Hv5T8z9Q5 WBBVD4dYtPoT/OYTkvqJ0Vyaxl0UOGwCaXKDZTpQeHyW6xBMY0eIhpseEQp4xj/gFzsg Gm2oJNkd0YsIFkmxrzOoDZyQR3nQWwKFTBWT6+grBCKDqLq3OXjXfunFublfQjwBtQRW 0FmXJup3b+1HN14Ffj33IKnflrJp4SrTCkY+fqOjJjIkuwZTg43NzTkCa5S9BJ0jVsex fxFWBJSyEl8VVmHGRD+SmZ+iiXzk1QRLsV0ywvtz7kLUzCuBefE20Pgh6uEgKYePRHfp wUoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Nn4X97Z2; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bz6si16420285ejc.610.2021.07.11.23.29.12; Sun, 11 Jul 2021 23:29:12 -0700 (PDT) Received-SPF: pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Nn4X97Z2; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234997AbhGLGbU (ORCPT + 12 others); Mon, 12 Jul 2021 02:31:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:47908 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234710AbhGLG2Z (ORCPT ); Mon, 12 Jul 2021 02:28:25 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D366461006; Mon, 12 Jul 2021 06:24:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626071074; bh=lG0BcVGm0Yni+ENQ3WPe5ApQNVmGtUuSAAZplSQJSck=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Nn4X97Z2xTaMX19eIgH6DwVUdvwiwHqp60DRMjCkSKvzSBKu/P59S0XQR2snsHfxK T46vCt1BzGeLR2UAEKbKFdmGdr/Y+Q5zQ6ZhS6G3fry/gYvM+UIJfJZGcIu3UjkV8b InclFZA/YQHun84ngPbpvU0sRrOWcdAftDVis6XY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jonathan Cameron , Alexandru Ardelean , Andy Shevchenko , Sasha Levin Subject: [PATCH 5.4 264/348] iio:accel:mxc4005: Drop unnecessary explicit casts in regmap_bulk_read calls Date: Mon, 12 Jul 2021 08:10:48 +0200 Message-Id: <20210712060738.433300248@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210712060659.886176320@linuxfoundation.org> References: <20210712060659.886176320@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Jonathan Cameron [ Upstream commit b01401a228bc4997b0d4bcb669fced448f7a15ca ] regmap_bulk_read takes a void * for its val parameter. It certainly makes no sense to cast to a (u8 *) + no need to explicitly cast at all when converting another pointer type to void *. Signed-off-by: Jonathan Cameron Reviewed-by: Alexandru Ardelean Reviewed-by: Andy Shevchenko Signed-off-by: Sasha Levin --- drivers/iio/accel/mxc4005.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.30.2 diff --git a/drivers/iio/accel/mxc4005.c b/drivers/iio/accel/mxc4005.c index 3d5bea651923..9d07642c0de1 100644 --- a/drivers/iio/accel/mxc4005.c +++ b/drivers/iio/accel/mxc4005.c @@ -135,7 +135,7 @@ static int mxc4005_read_xyz(struct mxc4005_data *data) int ret; ret = regmap_bulk_read(data->regmap, MXC4005_REG_XOUT_UPPER, - (u8 *) data->buffer, sizeof(data->buffer)); + data->buffer, sizeof(data->buffer)); if (ret < 0) { dev_err(data->dev, "failed to read axes\n"); return ret; @@ -150,7 +150,7 @@ static int mxc4005_read_axis(struct mxc4005_data *data, __be16 reg; int ret; - ret = regmap_bulk_read(data->regmap, addr, (u8 *) ®, sizeof(reg)); + ret = regmap_bulk_read(data->regmap, addr, ®, sizeof(reg)); if (ret < 0) { dev_err(data->dev, "failed to read reg %02x\n", addr); return ret;