Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752717AbdF2T0o (ORCPT ); Thu, 29 Jun 2017 15:26:44 -0400 Received: from mail-vk0-f66.google.com ([209.85.213.66]:34001 "EHLO mail-vk0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751591AbdF2T0i (ORCPT ); Thu, 29 Jun 2017 15:26:38 -0400 MIME-Version: 1.0 In-Reply-To: <20170629170352.11264-4-masneyb@onstation.org> References: <20170629170352.11264-1-masneyb@onstation.org> <20170629170352.11264-4-masneyb@onstation.org> From: Frans Klaver Date: Thu, 29 Jun 2017 21:26:37 +0200 Message-ID: Subject: Re: [PATCH 3/6] staging: iio: tsl2x7x: remove tsl2x7x_i2c_read() To: Brian Masney Cc: jic23@kernel.org, linux-iio@vger.kernel.org, driverdevel , lars@metafoo.de, Greg KH , "linux-kernel@vger.kernel.org" , Jon.Brenner@ams.com, pmeerw@pmeerw.net, knaack.h@gmx.de Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 413 Lines: 10 On Thu, Jun 29, 2017 at 7:03 PM, Brian Masney wrote: > tsl2x7x_i2c_read() would call i2c_smbus_write_byte() and > i2c_smbus_read_byte(). These two i2c functions can be replaced with a > single call to i2c_smbus_read_byte_data(). This patch removes the > tsl2x7x_i2c_read() function and replaces all occurances with a call to > i2c_smbus_read_byte_data(). s,occurances,occurrences, Frans