dperezde / little-penguin

https://bitbucket.org/dperezde/eudyptula
GNU General Public License v2.0
1 stars 0 forks source link

T10 #9

Closed dperezde closed 7 years ago

dperezde commented 7 years ago

Yeah, you conquered the sysfs monster, great job!

Now you know you'll never want to mess with a kobject again, right? Trust me, there are easier ways to create sysfs files, and we will get into that for a future task, but for now, let's make it a bit more simple after all of that coding.

For these tasks, go back to the linux-next tree you used for task 07. Update it, and then do the following:

Hopefully this patch will be accepted into the kernel tree, and all of a sudden, you are an "official" kernel developer!

dperezde commented 7 years ago

https://youtu.be/LLBrBBImJt4?list=WL

dperezde commented 7 years ago

https://kernelnewbies.org/FirstKernelPatch#head-c6787a87bf43892c248aa28c2fc248be8afb5f67

dperezde commented 7 years ago
./scripts/checkpatch.pl --file --terse drivers/power/supply/sbs-charger.c 
git diff
git commit -a
git branch 
git format-patch feb583e3..sbs-charger-bool

Then after getting comments, code, commit, format-patch:

git format-patch --subject-prefix="PATCH v2" feb583e3..sbs-charger-bool-v2

Find out who it should go to with one of these options:

./scripts/get_maintainer.pl 0001-Power-Supply-sbs-charger-simplfied-bool-function.patch 
./scripts/get_maintainer.pl -f drivers/power/supply/sbs-charger.c 

And email it:

./scripts/checkpatch.pl 0001-Power-supply-sbs-charger-simplified-bool-function.patch 
git send-email --to sre@kernel.org --cc linux-pm@vger.kernel.org --cc linux-kernel@vger.kernel.org --cc nicolassaenzj@gmail.com 0001-Power-supply-sbs-charger-simplified-bool-function.patch
dperezde commented 7 years ago

From Nico: git format-patch -N --cover-letter -o outgoing

dperezde commented 7 years ago

https://felipec.wordpress.com/2009/10/25/git-send-email-tricks/