From: Sean MacLennan <smaclennan@pikatech.com>
To: Misbah khan <misbah_khan@engineer.com>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: How to creat a .config file for a driver and How to use it in adevice driver?????
Date: Wed, 02 Jan 2008 12:47:28 -0500 [thread overview]
Message-ID: <477BCE30.8010306@pikatech.com> (raw)
In-Reply-To: <14576412.post@talk.nabble.com>
Misbah khan wrote:
> Hi all ...
>
> i am writing a device driver in which the default configuration for LCD
> display i need to keep it in a .config file so that as the system boots it
> take the value from this file and does the initial configuration in the init
> of the driver. If user changes the .config file content in the next boot the
> LCD driver should take the new default configuration
>
> There will also be a run time config which could be changed at the rum time
> but will not change the default configuration.
>
>
> i am writing a LCD driver for PPC arch i need to know that how should i
> creat a .config file and How should i use it my device driver. ??????
>
> If you had an exprience in this regard please do share with me ...
>
> ----Misbah <><
>
You don't. The safe way is to have sane defaults in the driver. Then
write a user mode app that reads the config file and configures the
driver properly, probably through ioctls.
Cheers,
Sean
next prev parent reply other threads:[~2008-01-02 17:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-02 10:54 How to creat a .config file for a driver and How to use it in a device driver????? Misbah khan
2008-01-02 17:47 ` Sean MacLennan [this message]
2008-01-03 4:40 ` How to creat a .config file for a driver and How to use it in adevice driver????? Misbah khan
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=477BCE30.8010306@pikatech.com \
--to=smaclennan@pikatech.com \
--cc=linuxppc-dev@ozlabs.org \
--cc=misbah_khan@engineer.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;
as well as URLs for NNTP newsgroup(s).