[Linux][Driver]Fix for the error : struct i2c_device_id is not terminated with a NULL entry!


check struct i2c_device_id  initialization. Missing of empty curly braces causes the error . eg:  if struct i2c_device_id initialization is like given below , compiler will show the above error . ie “struct i2c_device_id is not terminated with a NULL entry! ” const struct i2c_device_id adt7461_id[] = { { DRIVER_NAME, 0 }, }; Fix for the aboveContinue reading “[Linux][Driver]Fix for the error : struct i2c_device_id is not terminated with a NULL entry!”

[Linux][Memory Mapping]Linear mapping equation among Kernel base , page offset, physical start and memory start


For the linear mapping the following equation should be true: KERNELBASE – PAGE_OFFSET = PHYSICAL_START – MEMORY_START Also, KERNELBASE >= PAGE_OFFSET and PHYSICAL_START >= MEMORY_START where KERNELBASE ->the virtual address of the start of the kernel PAGE_OFFSET->the virtual address of the start of lowmem PHYSICAL_START-> the physical address of the start of the kernel MEMORY_STARTContinue reading “[Linux][Memory Mapping]Linear mapping equation among Kernel base , page offset, physical start and memory start”