From patchwork Mon Jan 16 18:51:14 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Clark X-Patchwork-Id: 6238 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 8D45323F82 for ; Mon, 16 Jan 2012 18:51:53 +0000 (UTC) Received: from mail-bk0-f52.google.com (mail-bk0-f52.google.com [209.85.214.52]) by fiordland.canonical.com (Postfix) with ESMTP id 7D010A18469 for ; Mon, 16 Jan 2012 18:51:53 +0000 (UTC) Received: by mail-bk0-f52.google.com with SMTP id zt4so869269bkb.11 for ; Mon, 16 Jan 2012 10:51:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf :dkim-signature:sender:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references; bh=NyztRF7SEqE1MPzKD+JZUFNtDESLw6I/oarGX0u4fAE=; b=csWPOBMWDxmTWGtPNrtyOLGulrZMA9VX6QSWLoNi8dQkQZ+iprtIiJgd1pt3HkUFsA AP1Ezroo9YhViOk2aETu9eFWqqoI+wURmGCPF+Pb6oUbOl5Cs5Ji58zh+K+NZ+0i6ORt EO2Hl8ecsTfhc9yOh3FWUdcUjf0h9abmoiXrM= Received: by 10.205.141.72 with SMTP id jd8mr943149bkc.135.1326739913341; Mon, 16 Jan 2012 10:51:53 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.205.82.144 with SMTP id ac16cs97876bkc; Mon, 16 Jan 2012 10:51:53 -0800 (PST) Received: by 10.236.173.202 with SMTP id v50mr18685874yhl.102.1326739911026; Mon, 16 Jan 2012 10:51:51 -0800 (PST) Received: from mail-gy0-f178.google.com (mail-gy0-f178.google.com [209.85.160.178]) by mx.google.com with ESMTPS id n61si20818248yhk.132.2012.01.16.10.51.50 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 16 Jan 2012 10:51:51 -0800 (PST) Received-SPF: pass (google.com: domain of robdclark@gmail.com designates 209.85.160.178 as permitted sender) client-ip=209.85.160.178; Authentication-Results: mx.google.com; spf=pass (google.com: domain of robdclark@gmail.com designates 209.85.160.178 as permitted sender) smtp.mail=robdclark@gmail.com; dkim=pass header.i=@gmail.com Received: by ghbg21 with SMTP id g21so46609ghb.37 for ; Mon, 16 Jan 2012 10:51:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=NyztRF7SEqE1MPzKD+JZUFNtDESLw6I/oarGX0u4fAE=; b=BPXMaME9TkYZZkvv5L5a8/XDoyIJYiy/Cd+Yg66WuzU6N+QKBSuWFPg/bkmiSCKN43 6fK4dPL1bIL1V6jhF661yeUoyC7HsNduNNRyJkWUAO1habl03hgkELwC1FoAWINkzraa svp3c6qKLCJYF9HDR7H/faS0UflVm31zR92l4= Received: by 10.236.185.9 with SMTP id t9mr18751578yhm.50.1326739910395; Mon, 16 Jan 2012 10:51:50 -0800 (PST) Received: from localhost (ppp-70-129-131-203.dsl.rcsntx.swbell.net. [70.129.131.203]) by mx.google.com with ESMTPS id c44sm31742140yhm.5.2012.01.16.10.51.42 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 16 Jan 2012 10:51:49 -0800 (PST) Sender: Rob Clark From: Rob Clark To: dri-devel@lists.freedesktop.org Cc: patches@linaro.org, Greg KH , Tomi Valkeinen , Andy Gross , Rob Clark Subject: [PATCH 1/5] drm/omap: drm API update: make fops struct const Date: Mon, 16 Jan 2012 12:51:14 -0600 Message-Id: <1326739878-345-2-git-send-email-rob.clark@linaro.org> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1326739878-345-1-git-send-email-rob.clark@linaro.org> References: <1326739878-345-1-git-send-email-rob.clark@linaro.org> From: Rob Clark Update to reflect changes in: "Make the per-driver file_operations struct const" Signed-off-by: Rob Clark --- drivers/staging/omapdrm/omap_drv.c | 24 +++++++++++++----------- 1 files changed, 13 insertions(+), 11 deletions(-) diff --git a/drivers/staging/omapdrm/omap_drv.c b/drivers/staging/omapdrm/omap_drv.c index 602aa2d..4db40f7 100644 --- a/drivers/staging/omapdrm/omap_drv.c +++ b/drivers/staging/omapdrm/omap_drv.c @@ -708,6 +708,18 @@ static struct vm_operations_struct omap_gem_vm_ops = { .close = drm_gem_vm_close, }; +static const struct file_operations omapdriver_fops = { + .owner = THIS_MODULE, + .open = drm_open, + .unlocked_ioctl = drm_ioctl, + .release = drm_release, + .mmap = omap_gem_mmap, + .poll = drm_poll, + .fasync = drm_fasync, + .read = drm_read, + .llseek = noop_llseek, +}; + static struct drm_driver omap_drm_driver = { .driver_features = DRIVER_HAVE_IRQ | DRIVER_MODESET | DRIVER_GEM, @@ -738,17 +750,7 @@ static struct drm_driver omap_drm_driver = { .dumb_destroy = omap_gem_dumb_destroy, .ioctls = ioctls, .num_ioctls = DRM_OMAP_NUM_IOCTLS, - .fops = { - .owner = THIS_MODULE, - .open = drm_open, - .unlocked_ioctl = drm_ioctl, - .release = drm_release, - .mmap = omap_gem_mmap, - .poll = drm_poll, - .fasync = drm_fasync, - .read = drm_read, - .llseek = noop_llseek, - }, + .fops = &omapdriver_fops, .name = DRIVER_NAME, .desc = DRIVER_DESC, .date = DRIVER_DATE,