Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp236211pxp; Wed, 9 Mar 2022 01:43:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJxKjKBBXi/Xsg0X+MSF3TFxWVmN1EH46/Jp84Mag9rK7AwTJzQ+gIeWAu6DkAXp6CrNGmQn X-Received: by 2002:a17:906:4cc7:b0:6d0:7efb:49f with SMTP id q7-20020a1709064cc700b006d07efb049fmr16797004ejt.639.1646818988105; Wed, 09 Mar 2022 01:43:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646818988; cv=none; d=google.com; s=arc-20160816; b=c8oJ/kvlBSRwQThDS9nqAwgMx+keHKcyefBPAd2N2xrxE79LGnsP8K7cZ9cQ2Hhwvn +t5ppM/ZX7XhyBxoYbmT1oFkS6B84jdZ7EJZFQZXnhP4MIDMzWGDAsLn70VGVYNHUfCd boUPjefURSN8g8IEzxvp4YChnIbSD3TB9x72zBRG0xCuePbPvFCooPdu0DR0GYnbPwXH gtwTwDZET/a8VsVPu99EN+1AMYtzWqaGT4pVFSRTVwVxz4LPbJgHAwHHbQTwqkOU6s+Y S7aiqdHNFjgEv/o3f9eClH+8WncdtaZ+8pP5HrvFWwNfBbfM7dGM+MGAeZAiq/+XPPO/ eqOQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=+GrpiBmBSXkB7/9MU5wDlEMtPnHABc2Wv0BpZPJ75IQ=; b=PmQsED69TPVsgKq1jpsJGPbkH6PKETzVbwhmHlbkr/CcxnY2R6nL+r74UUECYLqzin v++t1u9KmG3ElasmiQPs+7vaDbp1hpDoPYSSH7NCCh9ch9nuU0xiBNZCtCPFrRajodmP 7MShPE7yPYijPt2Se180ODwmnqCl2xCqGepQ9dMlvfUyDI2i5bQciMm3F3lowzwfg6uu R6tqXGAh/4aBGFByKcOoca+rFQHsqHA9tFrQW8OB3WlfNBJqG6kwEC6syjTcV935erwd t7Z2zJ0IyE/ApCQUDzs47m89kGnW304Y0KzKbrGqrzBsSRxTdLrHFOJ9V3tD8xGtpsoK RX+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RKIldFmx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id eb6-20020a0564020d0600b00415edbd4471si1288855edb.505.2022.03.09.01.42.45; Wed, 09 Mar 2022 01:43:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RKIldFmx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231635AbiCIJN4 (ORCPT + 99 others); Wed, 9 Mar 2022 04:13:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231889AbiCIJNz (ORCPT ); Wed, 9 Mar 2022 04:13:55 -0500 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DEDED3F339 for ; Wed, 9 Mar 2022 01:12:56 -0800 (PST) Received: by mail-ej1-x633.google.com with SMTP id r13so3482979ejd.5 for ; Wed, 09 Mar 2022 01:12:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+GrpiBmBSXkB7/9MU5wDlEMtPnHABc2Wv0BpZPJ75IQ=; b=RKIldFmxBs3HJTqLMfBrIiz9WPIwldE8DxqjOh4J5kKMHYaUJYDdMshRBUSRbiqT90 aIe36AVrwx5RCbTHcxk/daCrqzyxzw1g21zGbGU/Yb3EtLa/jFPi9ScPChtsTVkFvW+0 ErZYaBUcMAGYr+71kKCMTKwty4iqTi/7eeRR5QPRAaS8oa7VEOrJZbxxRRa+IIbJvRpD VptwJKXru2UmOjuC0WU7ZSECqawVgoOE9XDQFbko+caFQr3FPtSIc81wgDuzfC02hjBT 2PES5WwWQ3tkNDCZwTUoHPxyIqT0MwNpgvyZwhTo4JISKQ8uT1iL6uATbBfMVxgfGJ49 bqyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+GrpiBmBSXkB7/9MU5wDlEMtPnHABc2Wv0BpZPJ75IQ=; b=GLnLjab5Ichzx3Il/+bGTkxK6aZPQNgNAHqyAr0ncGshjjl285JunVqLwwEF93JmYs 0QrFBmEGL30DW/fJwGTvYs0+/ft91ABimXABgcCZOwyj3oFz6bGX0EYlccLposDScsE4 zRAWIv49Qs2a8kYqaRQ2tLSR6aQocVqYRj2AnLCY00o0Qr6UOQSA/v67JRIjSY5d6ktP CMm8OaotafYwCy3g7mD0Fu4LObfU5Bx1Jpx0f0VEYPO1pR5uB00AM+RKaapZYOSG9f81 tgj0+mt/PEWI2WyjNZboHzGnMFG5C7o9SFfFcT1P4crzlWIeWPYgriXnzPWCzgqvptR3 CUlw== X-Gm-Message-State: AOAM531/3p5MrrOCJ3tqwQ9PsXGBAQZF95dt7HYMi/AQxAzgBcswQmF5 oSDrimPWH1IFUflS2xhiJQ+gDFm2n/A5u2pK X-Received: by 2002:a17:906:b56:b0:6da:f8d8:aaef with SMTP id v22-20020a1709060b5600b006daf8d8aaefmr17070725ejg.67.1646817175099; Wed, 09 Mar 2022 01:12:55 -0800 (PST) Received: from localhost.localdomain ([102.126.147.138]) by smtp.gmail.com with ESMTPSA id g15-20020a170906520f00b006cd07ba40absm476099ejm.160.2022.03.09.01.12.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Mar 2022 01:12:54 -0800 (PST) From: Hatim Muhammed X-Google-Original-From: Hatim Muhammed To: linux-kernel@vger.kernel.org Cc: greg@kroah.com, abbotti@mev.co.uk, hsweeten@visionengravers.com, Hatim Muhammed Subject: [PATCH 8/8] Constify comedi_lrange struct pointer Date: Wed, 9 Mar 2022 11:12:50 +0200 Message-Id: <20220309091250.13290-1-hatimmohammed369@gmail.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hatim Muhammed Signed-off-by: Hatim Muhammed --- drivers/comedi/drivers/das16.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/comedi/drivers/das16.c b/drivers/comedi/drivers/das16.c index 937a69ce0977..d1eeb5896f2d 100644 --- a/drivers/comedi/drivers/das16.c +++ b/drivers/comedi/drivers/das16.c @@ -956,7 +956,7 @@ static const struct comedi_lrange *das16_ai_range(struct comedi_device *dev, /* get any user-defined input range */ if (pg_type == das16_pg_none && (min || max)) { - struct comedi_lrange *lrange; + const struct comedi_lrange *lrange; struct comedi_krange *krange; /* allocate single-range range table */ @@ -990,7 +990,7 @@ static const struct comedi_lrange *das16_ao_range(struct comedi_device *dev, /* get any user-defined output range */ if (min || max) { - struct comedi_lrange *lrange; + const struct comedi_lrange *lrange; struct comedi_krange *krange; /* allocate single-range range table */ -- 2.35.1