From patchwork Mon Jul 30 20:51:38 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?St=C3=A9phane_Marchesin?= X-Patchwork-Id: 1256621 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork2.kernel.org (Postfix) with ESMTP id BF335DFFBF for ; Mon, 30 Jul 2012 20:52:08 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 884D69F392 for ; Mon, 30 Jul 2012 13:52:08 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-pb0-f49.google.com (mail-pb0-f49.google.com [209.85.160.49]) by gabe.freedesktop.org (Postfix) with ESMTP id 83CD19E8DD for ; Mon, 30 Jul 2012 13:51:41 -0700 (PDT) Received: by pbbrq13 with SMTP id rq13so11271374pbb.36 for ; Mon, 30 Jul 2012 13:51:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:x-mailer:mime-version :content-type:content-transfer-encoding; bh=mDS7wlp8c3lwJB8tWfs87xeXaf1Q6fxMByKBwXjl5BU=; b=f9bkqhfcNdg+QzIRsaP2KOGlU9lDIe6smTbdPNFsxCOwDixWZ7kalRiwECyX1MjNIR UqiSuwke8raYuIYzKWCNDP2wenMoxw9v0Fmhnz3Wyc/6EBWl+5rh/4AUjCfZ5yHviMAV +nmghNOkvQ0hOJXkDUpB6aH4WBeGssix+bEq0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:mime-version :content-type:content-transfer-encoding:x-gm-message-state; bh=mDS7wlp8c3lwJB8tWfs87xeXaf1Q6fxMByKBwXjl5BU=; b=B9MNfNeq0kfT7zmmjN7hgRmffZNl9iyhZYSDTp3A4JZNldFwa/KMdjoNZuEJwoTl9b OO8kAVPkgjqRY80gfw7P7Qxj+x1Snl4ZWh8RxOXFurO+vSl4NKOMHymWw+oJdQOI09/o PO+EPgd0fgCQONdcLJ6Sdt6DMNWoP/yi95sf2/bIiSQTdUy7rh3J00fQq+YvhUyk4uwd uW7BwybI2Eo7XLnqz9H8n4LILHlfOqiG8Assu8Y9f7ZuYaxOj1ef9LpacnUymffSFc3e yKrU87woAWYZlVBcWj3py+HIzAnBPI3xJpr0t04x2TZKyaxhNyJZZLnNNyXwMryq8yVp 5azw== Received: by 10.68.191.72 with SMTP id gw8mr38277095pbc.143.1343681501264; Mon, 30 Jul 2012 13:51:41 -0700 (PDT) Received: from localhost ([2620:0:1000:1b01:d685:64ff:feb2:fd1f]) by mx.google.com with ESMTPS id qu5sm4053781pbc.5.2012.07.30.13.51.39 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 30 Jul 2012 13:51:40 -0700 (PDT) From: =?UTF-8?q?St=C3=A9phane=20Marchesin?= To: intel-gfx@lists.freedesktop.org Date: Mon, 30 Jul 2012 13:51:38 -0700 Message-Id: <1343681498-22442-1-git-send-email-marcheu@chromium.org> X-Mailer: git-send-email 1.7.5.3.367.ga9930 MIME-Version: 1.0 X-Gm-Message-State: ALoCoQkHBJPRbVhv4FHrl5T/3Ce/tQeyPvcjxC1fIcck7f1/fb/TNKokSEhDgZuWrHkkT437hSsG Subject: [Intel-gfx] [PATCH] drm/i915: Make intel_panel_get_backlight static. X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org This function isn't used outside of intel_panel.c, so make it static. Signed-off-by: Stéphane Marchesin --- drivers/gpu/drm/i915/intel_drv.h | 1 - drivers/gpu/drm/i915/intel_panel.c | 2 +- 2 files changed, 1 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h index 8435355..3afe355 100644 --- a/drivers/gpu/drm/i915/intel_drv.h +++ b/drivers/gpu/drm/i915/intel_drv.h @@ -380,7 +380,6 @@ extern void intel_pch_panel_fitting(struct drm_device *dev, const struct drm_display_mode *mode, struct drm_display_mode *adjusted_mode); extern u32 intel_panel_get_max_backlight(struct drm_device *dev); -extern u32 intel_panel_get_backlight(struct drm_device *dev); extern void intel_panel_set_backlight(struct drm_device *dev, u32 level); extern int intel_panel_setup_backlight(struct drm_device *dev); extern void intel_panel_enable_backlight(struct drm_device *dev, diff --git a/drivers/gpu/drm/i915/intel_panel.c b/drivers/gpu/drm/i915/intel_panel.c index 10c7d39..9474488 100644 --- a/drivers/gpu/drm/i915/intel_panel.c +++ b/drivers/gpu/drm/i915/intel_panel.c @@ -213,7 +213,7 @@ static u32 intel_panel_compute_brightness(struct drm_device *dev, u32 val) return val; } -u32 intel_panel_get_backlight(struct drm_device *dev) +static u32 intel_panel_get_backlight(struct drm_device *dev) { struct drm_i915_private *dev_priv = dev->dev_private; u32 val;