From patchwork Mon Mar 30 12:58:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Velikov X-Patchwork-Id: 6120681 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 80BD6BF4A6 for ; Mon, 30 Mar 2015 12:58:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9C70120386 for ; Mon, 30 Mar 2015 12:58:32 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id B04AE20265 for ; Mon, 30 Mar 2015 12:58:31 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 223646E024; Mon, 30 Mar 2015 05:58:30 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wi0-f170.google.com (mail-wi0-f170.google.com [209.85.212.170]) by gabe.freedesktop.org (Postfix) with ESMTP id 9B6E26E024 for ; Mon, 30 Mar 2015 05:58:28 -0700 (PDT) Received: by wicne17 with SMTP id ne17so30331526wic.0 for ; Mon, 30 Mar 2015 05:58:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=NlsoC/MLr5LaeRRHXDMx8RTP2Z4wqAKY2WxMlnV9ksw=; b=YBu780Ox6l65M+6rCfjYuSHQvEwaaSjFCYB6SKYlBga0vUyepgWXmpVx+7B2bYcggA 9L3GP63MjaTlQ4SNyLHTEeDIaAITuqR/Ub5aPrdQKiPnbrfyp7Z8QAOmrgUUmq5ilYXU nHkxC/95aK48yPcZSRZjGDL+tbobAVevHJeqPmijDkttuRmp/Bbgkw1QMovIGG7+e+PE qcNjYfYyJwFIHJakrqM1VbWpBbxWTRZCLVWDOfm1sxVU5I0/A1z6vBtVAgvdU8dYSQ8h EzxOWQWtldHJNryFGDIqEqTCHzcJXj5m0g64wMvab76q/PV2yYu+luZo0u3V753IrVdg hlLQ== X-Received: by 10.194.179.41 with SMTP id dd9mr64597752wjc.72.1427720307548; Mon, 30 Mar 2015 05:58:27 -0700 (PDT) Received: from arch-laptop.localdomain (cpc12-croy20-2-0-cust52.croy.cable.virginm.net. [82.44.54.53]) by mx.google.com with ESMTPSA id ei8sm16247468wib.10.2015.03.30.05.58.26 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 30 Mar 2015 05:58:26 -0700 (PDT) From: Emil Velikov To: dri-devel@lists.freedesktop.org Subject: [PATCH] drm: line wrap DRM_IOCTL_DEF* macros Date: Mon, 30 Mar 2015 12:58:10 +0000 Message-Id: <1427720290-24990-1-git-send-email-emil.l.velikov@gmail.com> X-Mailer: git-send-email 2.1.3 In-Reply-To: <20150330112351.GK17410@intel.com> References: <20150330112351.GK17410@intel.com> Cc: emil.l.velikov@gmail.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Improve the readability and keeps the lines shorter than 80 columns. Signed-off-by: Emil Velikov --- Written against drm-intel/topic/drm-misc. -Emil --- drivers/gpu/drm/drm_ioctl.c | 10 ++++++++-- include/drm/drmP.h | 8 +++++++- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/drm_ioctl.c b/drivers/gpu/drm/drm_ioctl.c index a6d773a..ae50f7b 100644 --- a/drivers/gpu/drm/drm_ioctl.c +++ b/drivers/gpu/drm/drm_ioctl.c @@ -524,8 +524,14 @@ static int drm_ioctl_permit(u32 flags, struct drm_file *file_priv) return 0; } -#define DRM_IOCTL_DEF(ioctl, _func, _flags) \ - [DRM_IOCTL_NR(ioctl)] = {.cmd = ioctl, .func = _func, .flags = _flags, .cmd_drv = 0, .name = #ioctl} +#define DRM_IOCTL_DEF(ioctl, _func, _flags) \ + [DRM_IOCTL_NR(ioctl)] = { \ + .cmd = ioctl, \ + .func = _func, \ + .flags = _flags, \ + .cmd_drv = 0, \ + .name = #ioctl \ + } /** Ioctl table */ static const struct drm_ioctl_desc drm_ioctls[] = { diff --git a/include/drm/drmP.h b/include/drm/drmP.h index 63c0b01..c95543c 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h @@ -263,7 +263,13 @@ struct drm_ioctl_desc { */ #define DRM_IOCTL_DEF_DRV(ioctl, _func, _flags) \ - [DRM_IOCTL_NR(DRM_##ioctl)] = {.cmd = DRM_##ioctl, .func = _func, .flags = _flags, .cmd_drv = DRM_IOCTL_##ioctl, .name = #ioctl} + [DRM_IOCTL_NR(DRM_##ioctl)] = { \ + .cmd = DRM_##ioctl, \ + .func = _func, \ + .flags = _flags, \ + .cmd_drv = DRM_IOCTL_##ioctl, \ + .name = #ioctl \ + } /* Event queued up for userspace to read */ struct drm_pending_event {