Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp526304ybt; Fri, 26 Jun 2020 05:28:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz3ak10gpaVKBGF3CX4IVTohDn9mdvpmBC7K8bRj2xtBrQNJv0IMsTqdMkFDn7J/A6C/THe X-Received: by 2002:a17:906:6441:: with SMTP id l1mr2223256ejn.169.1593174502637; Fri, 26 Jun 2020 05:28:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593174502; cv=none; d=google.com; s=arc-20160816; b=qYYljyFxjtYmkPNr9v4HSWkkz7G8dKKNdYVC6/Y1bif1Y614kmSKHTXP5jzbGGh/3d VbG6CU2KfKf/OLEbr6G9HzP02WQRkFotiHgRPBDwN9FjHu/ntGUbqahIBJOmuE5Uyuhk P99syzy9L5lX9BvRUBhQ7ALK3FdJVnN26EvtrpSZrkABwI9539sk9yEtmKKOeAG8myHY BNCX3y/zPeA+CuBM/Dj7Ms80jqHqBOIw0Fw3wcn6XxIUTenEFph9RW66ATVUUNJBaKC+ y7KoY5UKwdjRQICXd9sze5cYIrLHC50fX1W/iOw2k/mXAxHDGMAzQVbUj7rzNxvvt2s/ EPDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=ancI0DiJuBHXSKZ5+IbcX7oH9DUg3u3wUo5JHY1jQ8Q=; b=vaah4zPJ7ImcNVsXW+IHeVgJl8kBUErzz7r5qGS6Pum20GpX9LMgQTsrA9GXqh5n1t 5WYeSm3I68Oy3NQ6GcxObIPFqokzo/ADizLcTahvM9kkGpy9m2XZjuo/tSAZ48dCsi3Q aNIyMchqGYQLAsDj0BHyXIok64B7saFfEqgOhRkfcdsP0sZqkrP3Fy8y8kHf23HFg96P Ui/2CGxihf4uWu+luOSO/4ucw1pKbg7XWtE2O8WSR1BSVAbLxzOofzlEWvpTYljkK93Q wcGcMTXuro76iLS0WgQFe8U0aVo+OXtR2c1T1H4KN5bzQekURmeskPb3JbJLMMpEs1wr fN6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@es-iitr-ac-in.20150623.gappssmtp.com header.s=20150623 header.b="dL74L/zZ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=iitr.ac.in Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q19si9783306edr.36.2020.06.26.05.27.59; Fri, 26 Jun 2020 05:28:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@es-iitr-ac-in.20150623.gappssmtp.com header.s=20150623 header.b="dL74L/zZ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=iitr.ac.in Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728532AbgFZLgm (ORCPT + 99 others); Fri, 26 Jun 2020 07:36:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726417AbgFZLgk (ORCPT ); Fri, 26 Jun 2020 07:36:40 -0400 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AAE36C08C5C1 for ; Fri, 26 Jun 2020 04:36:40 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id d12so4196673ply.1 for ; Fri, 26 Jun 2020 04:36:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=es-iitr-ac-in.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ancI0DiJuBHXSKZ5+IbcX7oH9DUg3u3wUo5JHY1jQ8Q=; b=dL74L/zZ9BCZoo+PCRLQB08bPtBOvxGg1hZA+U17dmRj+ppEOwCdggfQeRcWIt+vRk W/AT3zpaRrzMiI6lyQssdG8lydU7xNOgjgUL/Nx9zCIYHYdGEKIoijiEZyRAWsobMfAJ IYSdQ1wHfgZ1a2pIZ78ZxAMdt/9TYUccBYcXrNiztpvZ/sc1OCErUGrSS0HDONzyTwDQ NjkuJlmWlLOe6O86M4P7ZOot9BLLbp+saJcfhoV5OCsstFA3gGvnq+jgnMku5mkQ6/a1 ERMUJAK/pTnx5MvrtGFcZW2dLfGZ7kAUHLQmVwKWhT2MvZ75aO3dARUB38tExu5hO02M kzVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ancI0DiJuBHXSKZ5+IbcX7oH9DUg3u3wUo5JHY1jQ8Q=; b=hqfhI9gDoxXpI90s/qC4im7luxp00b7DxVPMbKIIYY/NbQZUy0LL7Hp8zK7mEErIY5 5C0IweSYXgJJ5M/iWlo6R5x6gUAMdeX/uDRCDvBj3IBMI05yVzhZpBOHyRGNl0K1eN1E mp8/fQ6RW4duUtY4zz0tTRLVgmmTvkiU2gPNBLnE+ni5xr6hiW9yLbTjumzXN4JpCH3t NFcMB2tftujLhK5LagjVOpYWTxCE0A5+NGROTwXJS8DlTxTk9+ISxmz42DB2qEdbDTAJ g04ozAQxcDlorHGldo2UL+/k4UHsh4pwvMwZ2Ti66tFc/AwTvEjVG30kY4YbdR91771e jyUA== X-Gm-Message-State: AOAM533k8Dic2iXXpQvE1jS1eGv5s9Ibl6kooCR0EyRpTcRm928CKxut lBPajhPl9j/rIxtyiUMIVQ3+iw== X-Received: by 2002:a17:902:9303:: with SMTP id bc3mr2389843plb.56.1593171400185; Fri, 26 Jun 2020 04:36:40 -0700 (PDT) Received: from kaaira-HP-Pavilion-Notebook ([103.113.213.178]) by smtp.gmail.com with ESMTPSA id i26sm25994768pfo.0.2020.06.26.04.36.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jun 2020 04:36:39 -0700 (PDT) From: Kaaira Gupta To: Helen Koike , Shuah Khan , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Kieran Bingham , hverkuil@xs4all.nl Cc: Kaaira Gupta Subject: [PATCH v6 1/3] media: tpg: change char argument to const char Date: Fri, 26 Jun 2020 17:06:16 +0530 Message-Id: <20200626113618.15280-2-kgupta@es.iitr.ac.in> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200626113618.15280-1-kgupta@es.iitr.ac.in> References: <20200626113618.15280-1-kgupta@es.iitr.ac.in> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Change the argument of type char * to const char * for function tpg_gen_text(). Signed-off-by: Kaaira Gupta --- drivers/media/common/v4l2-tpg/v4l2-tpg-core.c | 10 +++++----- include/media/tpg/v4l2-tpg.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/media/common/v4l2-tpg/v4l2-tpg-core.c b/drivers/media/common/v4l2-tpg/v4l2-tpg-core.c index 50f1e0b28b25..dde22a4cbd6c 100644 --- a/drivers/media/common/v4l2-tpg/v4l2-tpg-core.c +++ b/drivers/media/common/v4l2-tpg/v4l2-tpg-core.c @@ -1927,34 +1927,34 @@ typedef struct { u16 __; u8 _; } __packed x24; static noinline void tpg_print_str_2(const struct tpg_data *tpg, u8 *basep[TPG_MAX_PLANES][2], unsigned p, unsigned first, unsigned div, unsigned step, - int y, int x, char *text, unsigned len) + int y, int x, const char *text, unsigned len) { PRINTSTR(u8); } static noinline void tpg_print_str_4(const struct tpg_data *tpg, u8 *basep[TPG_MAX_PLANES][2], unsigned p, unsigned first, unsigned div, unsigned step, - int y, int x, char *text, unsigned len) + int y, int x, const char *text, unsigned len) { PRINTSTR(u16); } static noinline void tpg_print_str_6(const struct tpg_data *tpg, u8 *basep[TPG_MAX_PLANES][2], unsigned p, unsigned first, unsigned div, unsigned step, - int y, int x, char *text, unsigned len) + int y, int x, const char *text, unsigned len) { PRINTSTR(x24); } static noinline void tpg_print_str_8(const struct tpg_data *tpg, u8 *basep[TPG_MAX_PLANES][2], unsigned p, unsigned first, unsigned div, unsigned step, - int y, int x, char *text, unsigned len) + int y, int x, const char *text, unsigned len) { PRINTSTR(u32); } void tpg_gen_text(const struct tpg_data *tpg, u8 *basep[TPG_MAX_PLANES][2], - int y, int x, char *text) + int y, int x, const char *text) { unsigned step = V4L2_FIELD_HAS_T_OR_B(tpg->field) ? 2 : 1; unsigned div = step; diff --git a/include/media/tpg/v4l2-tpg.h b/include/media/tpg/v4l2-tpg.h index eb191e85d363..9749ed409856 100644 --- a/include/media/tpg/v4l2-tpg.h +++ b/include/media/tpg/v4l2-tpg.h @@ -241,7 +241,7 @@ void tpg_log_status(struct tpg_data *tpg); void tpg_set_font(const u8 *f); void tpg_gen_text(const struct tpg_data *tpg, - u8 *basep[TPG_MAX_PLANES][2], int y, int x, char *text); + u8 *basep[TPG_MAX_PLANES][2], int y, int x, const char *text); void tpg_calc_text_basep(struct tpg_data *tpg, u8 *basep[TPG_MAX_PLANES][2], unsigned p, u8 *vbuf); unsigned tpg_g_interleaved_plane(const struct tpg_data *tpg, unsigned buf_line); -- 2.17.1