What is the difference between kernel code downloaded from http://www.kernel.org and the one downloaded from Software Center
Which one is better for writing a device driver?
The Ubuntu kernel has a number of patches to tweak it. To see exactly what ones, you will want to check out the Ubuntu kernel with GIT and review the history. You can do this with: