Received: by 2002:ac0:950e:0:0:0:0:0 with SMTP id f14csp629422imc; Sat, 16 Mar 2019 10:50:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqyO7PLA5p9qFZuTDFH6VQuwPv6ZiZWi2xh2LCNJ1PM0DHE9Rs5Jr9yPUFXwY0fA+4DeZPVV X-Received: by 2002:a63:d209:: with SMTP id a9mr9431242pgg.341.1552758627924; Sat, 16 Mar 2019 10:50:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552758627; cv=none; d=google.com; s=arc-20160816; b=gWmko1ma76hcYox/eA5EHA+mFbTnQYWcTzqmL2ElWnoIi3QKgp4o3r+kfO/t114G3P HSJzCYUpOxbWghs0xMyiDjOQVy/xBUi1K9Hj3SUQmcIT4YEyrezzyvM/p6kzQiaicH2n T02hd6cUHhoWZv3lhPivX4uADSPE8w/Ug1X5ktu++pt2b5AxBiCpvVH8z3aMh9tfSOOI VR5xpsH7R7B09tCQyeKFfORgamccHXNzogMHvLj5DzGqpGaepuj7XaJdn4hT8hfqYBCS So7YZlRaLgUmP8C0nRG2/++rQQAaLSfpwrx3ho3caaylw+E5a8ws1mIv85A+eR3LLqGg xpSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=Abv6W2vjfELg5IznL4nARBoJElFg5lohmmFwJgPeZdQ=; b=gwtK//80nc+gWTfSCjzcRj29ZjwbOhMX/qY4zPWM8ARHdvwQLkkzeKBQu2fSt/6eNZ Rv5SgNNLooXGSmNrK3PJ8l+IwyEXFpAQnYrjqH7A2YPS74mS1ZRDnTkvqsvcgJmY+Lql doYrkdXDY0YfHgRmPLN1ApADaWUeWAi1/nbYx+9y3GW/gas04WOVWn7tC2X4j8yPT38o orK5W6XS+O23vMOMA6S5RczBhdfW74DRNJS0mh/QvKMznjoBw8U6zYd14AijjJmmOSCZ cX+UkDDz0FazxsXYfRlhOkn3n4gfvfoBf2BIpqt2ynvTBgOADYbwKxNlagNdMYc/hARm psug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=r2NjMQWx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c13si1396650pfd.93.2019.03.16.10.50.00; Sat, 16 Mar 2019 10:50:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=r2NjMQWx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727112AbfCPRsj (ORCPT + 99 others); Sat, 16 Mar 2019 13:48:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:60084 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726549AbfCPRsi (ORCPT ); Sat, 16 Mar 2019 13:48:38 -0400 Received: from archlinux (cpc91196-cmbg18-2-0-cust659.5-4.cable.virginm.net [81.96.234.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B770A218D0; Sat, 16 Mar 2019 17:48:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1552758518; bh=zfqvj9JtB7otT6UyUIVwQiBiy9Z2CzQtb6MaUrFW2Gc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=r2NjMQWxQt2vn10NVzP288IzgW3+ZVOHh+960kz6PBXkD8F7lNjXEz+rY0ddHpldj FdFIWjVHTfIIrLmy28xYkG43MELF3roTaMJ+TxuEBdXg4nqjIe98ICINtcLPNer9po fNPvJFF7M0QVsB5JnziVGmbeWbG68YIHL3BuLhRk= Date: Sat, 16 Mar 2019 17:48:31 +0000 From: Jonathan Cameron To: Renato Lui Geh Cc: lars@metafoo.de, Michael.Hennerich@analog.com, knaack.h@gmx.de, pmeerw@pmeerw.net, gregkh@linuxfoundation.org, stefan.popa@analog.com, alexandru.Ardelean@analog.com, giuliano.belinassi@usp.br, robh+dt@kernel.org, mark.rutland@arm.com, linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, kernel-usp@googlegroups.com, devicetree@vger.kernel.org Subject: Re: [PATCH v5 02/11] staging: iio: ad7780: add missing switch default case Message-ID: <20190316174831.04bd818a@archlinux> In-Reply-To: <84375be9b21a30dde736e47a7e2f72c1aedf7e92.1552700652.git.renatogeh@gmail.com> References: <84375be9b21a30dde736e47a7e2f72c1aedf7e92.1552700652.git.renatogeh@gmail.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 15 Mar 2019 23:12:53 -0300 Renato Lui Geh wrote: > This patch simply adds a missing switch default case in read_raw. > > Signed-off-by: Renato Lui Geh Applied, Thanks, Jonathan > --- > drivers/staging/iio/adc/ad7780.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/staging/iio/adc/ad7780.c b/drivers/staging/iio/adc/ad7780.c > index 07e5e35c92a3..f4cd7bc3e02f 100644 > --- a/drivers/staging/iio/adc/ad7780.c > +++ b/drivers/staging/iio/adc/ad7780.c > @@ -118,6 +118,8 @@ static int ad7780_read_raw(struct iio_dev *indio_dev, > case IIO_CHAN_INFO_OFFSET: > *val = -(1 << (chan->scan_type.realbits - 1)); > return IIO_VAL_INT; > + default: > + break; > } > > return -EINVAL;