From: Afzal Mohammed <afzal@ti.com>
To: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>,
Tomi Valkeinen <tomi.valkeinen@ti.com>,
Grant Likely <grant.likely@secretlab.ca>,
Rob Herring <rob.herring@calxeda.com>, <nsekhar@ti.com>,
<hvaibhav@ti.com>, <linux-omap@vger.kernel.org>,
<linux-fbdev@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<devicetree-discuss@lists.ozlabs.org>
Subject: [PATCH v2 08/10] video: da8xx-fb: store struct device *
Date: Mon, 7 Jan 2013 10:35:55 +0530 [thread overview]
Message-ID: <f85f1ca720c376f60ee4bbf3dda010b8f8bcabb2.1357303978.git.afzal@ti.com> (raw)
In-Reply-To: <cover.1357303978.git.afzal@ti.com>
store struct device pointer so that dev_dbg/err can be used outside
of probe.
Signed-off-by: Afzal Mohammed <afzal@ti.com>
---
drivers/video/da8xx-fb.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c
index 19ee560..663b3c5 100644
--- a/drivers/video/da8xx-fb.c
+++ b/drivers/video/da8xx-fb.c
@@ -154,6 +154,7 @@ static inline void lcdc_write(unsigned int val, unsigned int addr)
}
struct da8xx_fb_par {
+ struct device *dev;
resource_size_t p_palette_base;
unsigned char *v_palette_base;
dma_addr_t vram_phys;
@@ -1295,6 +1296,7 @@ static int __devinit fb_probe(struct platform_device *device)
}
par = da8xx_fb_info->par;
+ par->dev = &device->dev;
par->lcdc_clk = fb_clk;
par->lcd_fck_rate = clk_get_rate(fb_clk);
if (fb_pdata->panel_power_ctrl) {
--
1.7.9.5
next prev parent reply other threads:[~2013-01-07 5:05 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-07 5:01 [PATCH v2 00/10] video: da8xx-fb: runtime timing configuration Afzal Mohammed
2013-01-07 5:04 ` [PATCH v2 01/10] video: da8xx-fb: fb_check_var enhancement Afzal Mohammed
2013-01-07 5:04 ` [PATCH v2 02/10] video: da8xx-fb: simplify lcd_reset Afzal Mohammed
2013-01-07 5:04 ` [PATCH v2 03/10] video: da8xx-fb: use modedb helper to update var Afzal Mohammed
2013-01-07 5:05 ` [PATCH v2 04/10] video: da8xx-fb: remove unneeded "var" initialization Afzal Mohammed
2013-01-07 5:05 ` [PATCH v2 05/10] video: da8xx-fb: store current display information Afzal Mohammed
2013-01-07 5:05 ` [PATCH v2 06/10] video: da8xx-fb: store clk rate even if !CPUFREQ Afzal Mohammed
2013-01-07 5:05 ` [PATCH v2 07/10] video: da8xx-fb: pix clk and clk div handling cleanup Afzal Mohammed
2013-01-07 5:05 ` Afzal Mohammed [this message]
2013-01-07 5:06 ` [PATCH v2 09/10] video: da8xx-fb: report correct pixclock Afzal Mohammed
2013-01-07 5:06 ` [PATCH v2 10/10] video: da8xx-fb: fb_set_par support Afzal Mohammed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f85f1ca720c376f60ee4bbf3dda010b8f8bcabb2.1357303978.git.afzal@ti.com \
--to=afzal@ti.com \
--cc=FlorianSchandinat@gmx.de \
--cc=devicetree-discuss@lists.ozlabs.org \
--cc=grant.likely@secretlab.ca \
--cc=hvaibhav@ti.com \
--cc=linux-fbdev@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=nsekhar@ti.com \
--cc=rob.herring@calxeda.com \
--cc=tomi.valkeinen@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®