A deputy attorney in California has been charged in San Diego with possession of child pornography.